Functions | |
| def | console (msg, newline=True, stream='stdout') |
| Writes the message to the console. More... | |
| def | debug (msg, html=False) |
Writes the message to the log file using the DEBUG level. More... | |
| def | error (msg, html=False) |
Writes the message to the log file using the ERROR level. More... | |
| def | info (msg, html=False, also_console=False) |
Writes the message to the log file using the INFO level. More... | |
| def | trace (msg, html=False) |
Writes the message to the log file using the TRACE level. More... | |
| def | warn (msg, html=False) |
Writes the message to the log file using the WARN level. More... | |
| def | write (msg, level='INFO', html=False) |
| Writes the message to the log file using the given level. More... | |
| def robot.api.logger.console | ( | msg, | |
newline = True, |
|||
stream = 'stdout' |
|||
| ) |
Writes the message to the console.
If the ``newline`` argument is ``True``, a newline character is automatically added to the message. By default the message is written to the standard output stream. Using the standard error stream is possibly by giving the ``stream`` argument value ``'stderr'``.
| def robot.api.logger.debug | ( | msg, | |
html = False |
|||
| ) |
| def robot.api.logger.error | ( | msg, | |
html = False |
|||
| ) |
| def robot.api.logger.info | ( | msg, | |
html = False, |
|||
also_console = False |
|||
| ) |
| def robot.api.logger.trace | ( | msg, | |
html = False |
|||
| ) |
| def robot.api.logger.warn | ( | msg, | |
html = False |
|||
| ) |
| def robot.api.logger.write | ( | msg, | |
level = 'INFO', |
|||
html = False |
|||
| ) |
Writes the message to the log file using the given level.
Valid log levels are ``TRACE``, ``DEBUG``, ``INFO`` (default), ``WARN``, and ``ERROR``. Additionally it is possible to use ``HTML`` pseudo log level that logs the message as HTML using the ``INFO`` level. Instead of using this method, it is generally better to use the level specific methods such as ``info`` and ``debug`` that have separate ``html`` argument to control the message format.