File tree Expand file tree Collapse file tree 1 file changed +1
-19
lines changed
Expand file tree Collapse file tree 1 file changed +1
-19
lines changed Original file line number Diff line number Diff line change @@ -113,26 +113,11 @@ read_json_lines(tf)
113113
114114
115115
116- ### Simple Logger configuration with ` $config() `
116+ ### Logger configuration with ` $config() `
117117
118118The ` $config() ` method provides a flexible alternative to configuring loggers
119119with their ` $set_*() ` methods.
120120
121- The simplest (but most limited) way to set up a Logger is with
122- ` basic_config() `
123-
124- ``` {r eval = FALSE}
125- # Simplified setup with basic_config
126- lgr$config(basic_config(
127- threshold = "info", # sets the Logger's threshold to info
128- file = "path/to/logfile", # adds an AppenderFile, use
129- fmt = "[L] %m" # set the format for the logfile
130- ))
131- ```
132-
133- A more explicit way is to use ` logger_config() ` , which can be used to specify
134- all aspects of a Logger, at the cost of beeing more verbose
135-
136121``` {r eval = FALSE}
137122
138123# explicit setup with logger_config
@@ -163,9 +148,6 @@ You can also specify Logger configurations in yaml files
163148lgr$config("path/to/config.yaml")
164149```
165150
166- * if ` file ` has the extension ` jsonl ` , ` basic_config ` will log in the jsonlines
167- format instead (via ` AppenderJson ` )
168-
169151
170152
171153### Custom Fields
You can’t perform that action at this time.
0 commit comments