createConsoleAppender: Create console appender

View source: R/Appenders.R

createConsoleAppenderR 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")                     

ParallelLogger documentation built on June 7, 2022, 5:05 p.m.