Log a message at the TRACE level
logTrace(...)
Zero or more objects which can be coerced to character (and which are pasted together with no separator).
Log a message at the specified level. The message will be sent to all the registered loggers.
appender <- createConsoleAppender(layout = layoutTimestamp)
logger <- createLogger(name = "SIMPLE",
threshold = "INFO",
appenders = list(appender))
registerLogger(logger)
logTrace("This event is below the threshold (INFO)")
logInfo("Hello world")
#> 2024-08-23 08:25:55 Hello world
#> 2024-08-23 08:25:55 Hello world
unregisterLogger("SIMPLE")
#> [1] TRUE