level | R Documentation |
The priority level can be an integer from the set 1..5 (otherwise it will be
modified sensibly to fit in that range), or a named logging level (one of
"DEBUG", "INFO", "WARN", "ERROR", or "FATAL"). An object of class loglevel is
also accepted; other input will be coerced using as.loglevel()
.
level(x)
level(x) <- value
## S3 method for class 'logger'
level(x)
## S3 replacement method for class 'logger'
level(x) <- value
x |
An object of class logger. |
value |
A loglevel. |
loglevel()
library('log4r')
logger <- create.logger(logfile = 'debugging.log', level = 1)
level(logger)
level(logger) <- "FATAL"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.