Several functions are provided:
log_setup
Initializes a logger (which becomes the default logger).
log_filesetup
Initializes a file-based logger (which becomes the default).
log_drop
Removes logger (which in general should not be needed).
log_set_pattern
Changes the default logging message pattern.
log_set_level
Sets the logging level threshold.
log_trace
Logs a trace-level message.
log_debug
Logs a debug-level message.
log_info
Logs a info-level message.
log_warn
Logs a warn-level message.
log_error
Logs a error-level message.
log_critical
Logs a critical-level message.
Supported logging levels are, in order of increasing threshold values, ‘trace’,
‘debug’, ‘info’, ‘warn’, ‘error’, and
‘critical’. A message issued below the current threshold is not displayed whereas
a message at or above the current threshold is displayed. The default level is ‘warn’.