Debian Codegraph @

man/logger_config.Rd

raw
1 % Generated by roxygen2: do not edit by hand
2 % Please edit documentation in R/logger_config.R
3 \name{logger_config}
4 \alias{logger_config}
5 \alias{as_logger_config}
6 \alias{as_logger_config.list}
7 \alias{as_logger_config.character}
8 \title{Logger Configuration Objects}
9 \usage{
10 logger_config(
11 appenders = NULL,
12 threshold = NULL,
13 filters = NULL,
14 exception_handler = NULL,
15 propagate = TRUE
16 )
17
18 as_logger_config(x)
19
20 \method{as_logger_config}{list}(x)
21
22 \method{as_logger_config}{character}(x)
23 }
24 \arguments{
25 \item{appenders}{see \link{Logger}}
26
27 \item{threshold}{see \link{Logger}}
28
29 \item{filters}{see \link{Logger}}
30
31 \item{exception_handler}{see \link{Logger}}
32
33 \item{propagate}{see \link{Logger}}
34
35 \item{x}{any \R object. Especially:
36 \itemize{
37 \item A \code{character} scalar. This can either be the path to a
38 YAML file or a character scalar containing valid YAML
39 \item a list containing the elements \code{appenders}, \code{threshold}, \code{exception_handler},
40 \code{propagate} and \code{filters}. See the section \emph{Fields} in \link{Logger} for
41 details.
42 \item a Logger object, to clone its configuration.
43 }}
44 }
45 \value{
46 a \code{list} with the subclass \code{"logger_config"}
47
48 a logger_config object
49 }
50 \description{
51 \code{logger_config()} is an S3 constructor for \code{logger_config} objects
52 that can be passed to the \verb{$config} method of a \link{Logger}. You
53 can just pass a normal \code{list} instead, but using this constructor is
54 a more formal way that includes additional argument checking.
55 }
56 \seealso{
57 \url{https://yaml.org/}
58 }