createConsoleAppender {ParallelLogger} | R Documentation |
Create console appender
Description
Create console appender
Usage
createConsoleAppender(layout = layoutSimple)
Arguments
layout |
The layout to be used by the appender. |
Details
Creates an appender that will write to the console.
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")
[Package ParallelLogger version 3.3.0 Index]