Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

logger_config

Logger Configuration Objects


Description

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 YAML

  • a list containing the elements appenders, threshold, exception_handler, propagate and filters. See the section Fields in Logger for details.

  • a Logger object, to clone its configuration.

Value

a list with the subclass "logger_config"

a logger_config object

See Also


lgr

A Fully Featured Logging Framework

v0.4.2
MIT + file LICENSE
Authors
Stefan Fleck [aut, cre] (<https://orcid.org/0000-0003-3344-9851>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.