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)
113
113
114
114
115
115
116
- ### Simple Logger configuration with ` $config() `
116
+ ### Logger configuration with ` $config() `
117
117
118
118
The ` $config() ` method provides a flexible alternative to configuring loggers
119
119
with their ` $set_*() ` methods.
120
120
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
-
136
121
``` {r eval = FALSE}
137
122
138
123
# explicit setup with logger_config
@@ -163,9 +148,6 @@ You can also specify Logger configurations in yaml files
163
148
lgr$config("path/to/config.yaml")
164
149
```
165
150
166
- * if ` file ` has the extension ` jsonl ` , ` basic_config ` will log in the jsonlines
167
- format instead (via ` AppenderJson ` )
168
-
169
151
170
152
171
153
### Custom Fields
You can’t perform that action at this time.
0 commit comments