Add the default console logger

addDefaultConsoleLogger(name = "DEFAULT_CONSOLE_LOGGER")

Arguments

name

A name for the logger.

Details

Creates a logger that writes to the console using the "INFO" threshold and the layoutSimple layout.

Examples

logger <- addDefaultConsoleLogger()
#> Currently in a tryCatch or withCallingHandlers block, so unable to add global calling handlers. ParallelLogger will not capture R messages, errors, and warnings, only explicit calls to ParallelLogger. (This message will not be shown again this R session)
logTrace("This event is below the threshold (INFO)")
logInfo("Hello world")
#> Hello world
#> Hello world
unregisterLogger(logger)
#> [1] TRUE