84 def write(msg, level='INFO', html=False):
85 if EXECUTION_CONTEXTS.current
is not None:
86 librarylogger.write(msg, level, html)
88 logger = logging.getLogger(
"RobotFramework")
89 level = {
'TRACE': logging.DEBUG // 2,
90 'DEBUG': logging.DEBUG,
94 'ERROR': logging.ERROR}[level]
95 logger.log(level, msg)
100 write(msg,
'TRACE', html)
105 write(msg,
'DEBUG', html)
113 def info(msg, html=False, also_console=False):
114 write(msg,
'INFO', html)
121 write(msg,
'WARN', html)
127 write(msg,
'ERROR', html)
139 def console(msg, newline=True, stream='stdout'):
140 librarylogger.console(msg, newline, stream)
def info(msg, html=False, also_console=False)
Writes the message to the log file using the INFO level.
def trace(msg, html=False)
Writes the message to the log file using the TRACE level.
def console(msg, newline=True, stream='stdout')
Writes the message to the console.
def debug(msg, html=False)
Writes the message to the log file using the DEBUG level.
def warn(msg, html=False)
Writes the message to the log file using the WARN level.
def write(msg, level='INFO', html=False)
Writes the message to the log file using the given level.
def error(msg, html=False)
Writes the message to the log file using the ERROR level.