powered by
Label/Unlabel Log Levels
label_levels(levels, log_levels = getOption("lgr.log_levels"))unlabel_levels(labels, log_levels = getOption("lgr.log_levels"))
unlabel_levels(labels, log_levels = getOption("lgr.log_levels"))
an integer vector of log levels
integer
a named integer vector, should usually not be set manually.
a character vector of log level labels. Please note that log levels are lowercase by default, even if many appenders print them in uppercase.
character
a character vector for label_levels() and an integer vector for unlabel_levels
label_levels()
unlabel_levels
get_log_levels()
Other formatting utils: colorize_levels
colorize_levels
# NOT RUN { x <- label_levels(c(seq(0, 600, by = 100), NA)) print(x) unlabel_levels(x) # }
Run the code above in your browser using DataLab