For details please refer to vignette("lgr", package = "lgr")
.
Options
You can also set these options in your .Rprofile
to make them permanent.
Some options can also be set via environment variables (The environment
variables are only used if the option is not set manually from R).
lgr.colors
a
list
offunctions
used for coloring the log levels in console output. Usually these will be functions from the package crayonlgr.log_levels
A named
integer
vector of log levels that are known to lgr for labeling, setting thresholds, etc... . Instead of modifying this option manually useadd_log_levels()
andremove_log_levels()
lgr.default_threshold
character
orinteger
scalar. The minimum log level that should be processed by the root logger. Defaults to400
("info"
), or to the value of the environment variableLGR_DEFAULT_THRESHOLD
if it is set. This option overrides the threshold specified inlgr.default_config
if both are set.lgr.default_config
Default configuration for the root logger. Can either be a special list object, a path to a YAML file, or a character scalar containing YAML code. See logger_config for details. Defaults to the value of the environment variable
LGR_DEFAULT_CONFIG
if it is set.lgr.suspend_logging
TRUE
orFALSE
. Suspend all logging for all loggers. Defaults to theTRUE
if the environment variableLGR_SUSPEND_LOGGING
is set to"TRUE"
. Instead of modifying this option manually usesuspend_logging()
andunsuspend_logging()
lgr.user
a
character
scalar. The default username forlgr::get_user()
.
Author
Maintainer: Stefan Fleck stefan.b.fleck@gmail.com (ORCID)