registerLogger: Register a logger

View source: R/Logging.R

registerLoggerR Documentation

Register a logger

Description

Register a logger

Usage

registerLogger(logger)

Arguments

logger

An object of type Logger as created using the createLogger function.

Details

Registers a logger as created using the createLogger function to the logging system.

Examples

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")                       
unregisterLogger("SIMPLE")                     

ParallelLogger documentation built on Sept. 11, 2024, 8:52 p.m.