Debian Codegraph @

man/logger_tree.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/logger_tree.R
3 \name{logger_tree}
4 \alias{logger_tree}
5 \title{Logger Tree}
6 \usage{
7 logger_tree()
8 }
9 \value{
10 \code{data.frame} with subclass \code{"logger_tree"}
11 }
12 \description{
13 Displays a tree structure of all registered Loggers.
14 }
15 \section{Symbology}{
16
17 \itemize{
18 \item unconfigured Loggers are displayed in gray (if your terminal supports
19 colors and you have the package \pkg{crayon} installed).
20 \item If a logger's \code{threshold} is set, it is displayed in square brackets next
21 to its name (reminder: if the threshold is not set, it is inherited from
22 next logger up the logger tree).
23 \item If a logger's \code{propagate} field is set to \code{FALSE} an red hash (\verb{#}) sign
24 is displayed in front of the logger name, to imply that it does not pass
25 LogEvents up the tree.
26 }
27 }
28
29 \examples{
30 get_logger("fancymodel")
31 get_logger("fancymodel/shiny")$
32 set_propagate(FALSE)
33
34 get_logger("fancymodel/shiny/ui")$
35 set_appenders(AppenderConsole$new())
36
37 get_logger("fancymodel/shiny/server")$
38 set_appenders(list(AppenderConsole$new(), AppenderConsole$new()))$
39 set_threshold("trace")
40
41 get_logger("fancymodel/plumber")
42
43 if (requireNamespace("cli")){
44 print(logger_tree())
45 }
46
47 }
48 \seealso{
49 \code{\link[=logger_index]{logger_index()}} for a tidy \code{data.frame} representation of
50 all registered loggers
51 }