level | R Documentation |
It can sometimes be useful to change the logging threshold level at runtime.
The level()
accessor allows doing so.
level(x)
level(x) <- value
## S3 method for class 'logger'
level(x)
## S3 replacement method for class 'logger'
level(x) <- value
available.loglevels()
x |
An object of class |
value |
One of |
lgr <- logger()
level(lgr) # Prints "INFO".
info(lgr, "This message is shown.")
level(lgr) <- "FATAL"
info(lgr, "This message is now suppressed.")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.