dictConfig: Takes the Logging Configuration From a List

Description Usage Arguments Examples

View source: R/dictConfig.R

Description

R adaptation of the Python logging.config.dictConfig function. See https://docs.python.org/3.6/library/logging.config.html#dictionary-schema-details for schema details.

Usage

1
dictConfig(config)

Arguments

config

configurations as a list

Examples

1
2
3
4
5
6
7
8
9
## Not run: 
# from an external json file
config <- rjson::fromJSON(file = "log_config.json")
dictConfig(config)

# use the internal log_config list
dictConfig(log_config)

## End(Not run)

jennguyen1/scriptR documentation built on May 29, 2019, 1:05 a.m.