Log a message at the INFO level
logInfo(...)
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. This
is equivalent to calling R's native message()
function.
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")
#> 2023-08-22 06:35:37 Hello world
#> 2023-08-22 06:35:37 Hello world
unregisterLogger("SIMPLE")
#> [1] TRUE