Debian Codegraph @

inst/draft_vignettes/lgr-faq.Rmd

raw
1 ---
2 title: "Frequently Asked Questions"
3 author: "Stefan Fleck"
4 date: "`r Sys.Date()`"
5 output:
6 rmarkdown::html_vignette:
7 toc: true
8 number_sections: true
9 vignette: >
10 %\VignetteIndexEntry{lgr-faq}
11 %\VignetteEncoding{UTF-8}
12 %\VignetteEngine{knitr::rmarkdown}
13 editor_options:
14 chunk_output_type: console
15 ---
16
17
18 # Frequently Asked Questions
19
20 https://github.com/s-fleck/lgr/issues/17
21
22 Sometimes I would like to have structured logging in order to be able to have msg in a log not as a plain string, but an easy to parse object. So it would be nice to have ability to specify on how to "translate" R's message into logging record. For example with JSON layout we can serialize R objects into json objects (and have fully machine-readable logs)
23
24 AppenderJson looks a little bit weird - it mixes both file sink and JSON formatting.
25
26
27 https://github.com/s-fleck/lgr/issues/15
28
29 How can i have custom formatting for a package logger
30
31 When should i use get_logger(), when should i use Logger$new
32
33 Why is Logger (Appender, AppenderDigest, etc) exported