86 def write(msg, level='INFO', html=False):
87 if EXECUTION_CONTEXTS.current
is not None:
88 librarylogger.write(msg, level, html)
90 logger = logging.getLogger(
"RobotFramework")
91 level = {
'TRACE': logging.DEBUG // 2,
92 'DEBUG': logging.DEBUG,
96 'ERROR': logging.ERROR}[level]
97 logger.log(level, msg)
102 write(msg,
'TRACE', html)
107 write(msg,
'DEBUG', html)
115 def info(msg, html=False, also_console=False):
116 write(msg,
'INFO', html)
123 write(msg,
'WARN', html)
131 write(msg,
'ERROR', html)
143 def console(msg, newline=True, stream='stdout'):
144 librarylogger.console(msg, newline, stream)
def console(msg, newline=True, stream='stdout')
Writes the message to the console.
def info(msg, html=False, also_console=False)
Writes the message to the log file using the INFO level.
def write(msg, level='INFO', html=False)
Writes the message to the log file using the given level.
def trace(msg, html=False)
Writes the message to the log file using the TRACE level.
def debug(msg, html=False)
Writes the message to the log file using the DEBUG level.
def error(msg, html=False)
Writes the message to the log file using the ERROR level.
def warn(msg, html=False)
Writes the message to the log file using the WARN level.