layoutTimestamp | R Documentation |
A layout function to be used with an appender. This layout adds the time to the message.
layoutTimestamp(level, message)
level |
The level of the message (e.g. "INFO") |
message |
The message to layout. |
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.