LoggingLibrary

Library version:0.1
Library scope:test case
Named arguments:supported

Introduction

Library for logging messages.

Table of contents

Usage

This library has several keyword, for example Log Message, for logging messages. In reality the library is used only for libdoc demonstration purposes.

Valid log levels

Valid log levels are INFO, DEBUG, and TRACE. The default log level can be set during importing.

Examples

Notice how keywords are linked from examples.

Log Message My message
Log Two Messages My message Second message level=DEBUG
Log Messages First message Second message Third message

Importing

Arguments Documentation
default_level=INFO

The default log level can be given at library import time.

See Valid log levels section for information about available log levels.

Examples:

Setting Value Value Comment
Library LoggingLibrary # Use default level (INFO)
Library LoggingLibrary DEBUG # Use the given level

Shortcuts

Log Message · Log Messages · Log Two Messages

Keywords

Keyword Arguments Documentation
Log Message message, level=None

Writes given message to the log file using the specified log level.

If no level is given, the default level given during library importing is used.

Log Messages *messages

Logs given messages using the log level set during importing.

See also Log Message and Log Two Messages.

Log Two Messages message1, message2, level=None

Writes given messages to the log file using the specified log level.

See Log Message keyword for more information.