logger_tree | R Documentation |
Displays a tree structure of all registered Loggers.
logger_tree()
data.frame
with subclass "logger_tree"
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 to FALSE
an red hash (#
) sign
is displayed in front of the logger name, to imply that it does not pass
LogEvents up the tree.
logger_index()
for a tidy data.frame
representation of
all registered loggers
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())
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.