set_name(name = "ROOT")
character(1)
-> self
Sets logger name.
set_log_level(level = "info")
character(1)
-> self
Sets log level.
set_printer(FUN = NULL)
function
-> self
Sets function which defines how to print logs.
FUN
should be a function with 6 formal arguments: timestamp, level,
logger_name, pid, message.
trace(msg, ...)
character()
, any
-> character(1)
Write trace message.
debug(msg, ...)
character()
, any
-> character(1)
Write debug message.
info(msg, ...)
character()
, any
-> character(1)
Write info message.
warn(msg, ...)
character()
, any
-> character(1)
Write warning message.
error(msg, ...)
character()
, any
-> character(1)
Write error message.
fatal(msg, ...)
character()
, any
-> character(1)
Write fatal error message.