levellog | R Documentation |
Write messages to logs at a given priority level.
levellog(logger, level, ...)
debug(logger, ...)
info(logger, ...)
warn(logger, ...)
error(logger, ...)
fatal(logger, ...)
logger |
An object of class 'logger'. |
level |
The desired priority level: a number, a character, or an object
of class 'loglevel'. Will be coerced using |
... |
One or more items to be written to the log at the corresponding priority level. |
loglevel()
library('log4r')
logger <- create.logger(logfile = 'debugging.log', level = "WARN")
levellog(logger, 'WARN', 'First warning from our code')
debug(logger, 'Debugging our code')
info(logger, 'Information about our code')
warn(logger, 'Another warning from our code')
error(logger, 'An error from our code')
fatal(logger, "I'm outta here")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.