logger_config()
is an S3 constructor for logger_config
objects
that can be passed to the $config
method of a Logger. You
can just pass a normal list
instead, but using this constructor is
a more formal way that includes additional argument checking.
Usage
logger_config(
appenders = NULL,
threshold = NULL,
filters = NULL,
exception_handler = NULL,
propagate = TRUE
)
as_logger_config(x)
# S3 method for class 'list'
as_logger_config(x)
# S3 method for class 'character'
as_logger_config(x)
Arguments
- appenders
see Logger
- threshold
see Logger
- filters
see Logger
- exception_handler
see Logger
- propagate
see Logger
- x
any R object. Especially:
A
character
scalar. This can either be the path to a YAML file or a character scalar containing valid YAMLa list containing the elements
appenders
,threshold
,exception_handler
,propagate
andfilters
. See the section Fields in Logger for details.a Logger object, to clone its configuration.