You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: reference/AppenderFile.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -195,14 +195,14 @@ lg$add_appender(
195
195
)
196
196
197
197
lg$info("A test message")
198
-
#> INFO [11:47:27.731] A test message
198
+
#> INFO [13:41:45.920] A test message
199
199
200
200
readLines(default)
201
-
#> [1] "INFO [2026-01-30 11:47:27.731] A test message"
201
+
#> [1] "INFO [2026-01-30 13:41:45.920] A test message"
202
202
readLines(fancy)
203
-
#> [1] "[2026-01-30 11:47:27.731] eval(): INFO A test message"
203
+
#> [1] "[2026-01-30 13:41:45.920] eval(): INFO A test message"
204
204
readLines(json)
205
-
#> [1] "{\"level\":400,\"timestamp\":\"2026-01-30 11:47:27\",\"logger\":\"test\",\"caller\":\"eval\",\"msg\":\"A test message\"}"
205
+
#> [1] "{\"level\":400,\"timestamp\":\"2026-01-30 13:41:45\",\"logger\":\"test\",\"caller\":\"eval\",\"msg\":\"A test message\"}"
206
206
207
207
# cleanup
208
208
lg$config(NULL)
@@ -222,12 +222,12 @@ lg$info("A test message")
222
222
lg$info("A test message %s strings", "with format strings", and="custom_fields")
223
223
224
224
lg$appenders[[1]]$show()
225
-
#> {"level":400,"timestamp":"2026-01-30 11:47:27","logger":"test","caller":"eval","msg":"A test message"}
226
-
#> {"level":400,"timestamp":"2026-01-30 11:47:27","logger":"test","caller":"eval","msg":"A test message with format strings strings","and":"custom_fields"}
225
+
#> {"level":400,"timestamp":"2026-01-30 13:41:45","logger":"test","caller":"eval","msg":"A test message"}
226
+
#> {"level":400,"timestamp":"2026-01-30 13:41:45","logger":"test","caller":"eval","msg":"A test message with format strings strings","and":"custom_fields"}
227
227
lg$appenders[[1]]$data
228
228
#> level timestamp logger caller
229
-
#> 1 400 2026-01-30 11:47:27 test eval
230
-
#> 2 400 2026-01-30 11:47:27 test eval
229
+
#> 1 400 2026-01-30 13:41:45 test eval
230
+
#> 2 400 2026-01-30 13:41:45 test eval
231
231
#> msg and
232
232
#> 1 A test message <NA>
233
233
#> 2 A test message with format strings strings custom_fields
0 commit comments