logger_tree {lgr} | R Documentation |
Logger Tree
Description
Displays a tree structure of all registered Loggers.
Usage
logger_tree()
Value
data.frame
with subclass "logger_tree"
Symbology
unconfigured Loggers are displayed in gray (if your terminal supports colors and you have the package crayon installed).
If a logger's
threshold
is set, it is displayed in square brackets next to its name (reminder: if the threshold is not set, it is inherited from next logger up the logger tree).If a logger's
propagate
field is set toFALSE
an red hash (#
) sign is displayed in front of the logger name, to imply that it does not pass LogEvents up the tree.
See Also
logger_index()
for a tidy data.frame
representation of
all registered loggers
Examples
get_logger("fancymodel")
get_logger("fancymodel/shiny")$
set_propagate(FALSE)
get_logger("fancymodel/shiny/ui")$
set_appenders(AppenderConsole$new())
get_logger("fancymodel/shiny/server")$
set_appenders(list(AppenderConsole$new(), AppenderConsole$new()))$
set_threshold("trace")
get_logger("fancymodel/plumber")
if (requireNamespace("cli")){
print(logger_tree())
}
[Package lgr version 0.4.4 Index]