Description Usage Arguments Value See Also Examples
Get or set log level threshold
1 | log_threshold(level, namespace = "global", index = 1)
|
level |
see |
namespace |
logger namespace |
index |
index of the logger within the namespace |
currently set log level threshold
logger
, log_layout
, log_formatter
, log_appender
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | ## Not run:
## check the currently set log level threshold
log_threshold()
## change the log level threshold to WARN
log_threshold(WARN)
log_info(1)
log_warn(2)
## add another logger with a lower log level threshold and check the number of logged messages
log_threshold(INFO, index = 2)
log_info(1)
log_warn(2)
## set the log level threshold in all namespaces to ERROR
log_threshold(ERROR, namespace = log_namespaces())
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.