Skip to content

Commit 010561f

Browse files
committed
cleaned up some basic_config related stuff that is no longer true
1 parent 8d764c2 commit 010561f

File tree

1 file changed

+1
-19
lines changed

1 file changed

+1
-19
lines changed

vignettes/lgr.Rmd

Lines changed: 1 addition & 19 deletions
Original file line numberDiff line numberDiff 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

118118
The `$config()` method provides a flexible alternative to configuring loggers
119119
with 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
163148
lgr$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

0 commit comments

Comments
 (0)