getLogger: Set defaults and get the named logger.

Description Usage Arguments Value Examples

View source: R/logger.R

Description

Make sure a logger with a specific name exists and return it as a Logger S4 object. if not yet present, the logger will be created and given the values specified in the ... arguments.

Usage

1

Arguments

name

The name of the logger

...

Any properties you may want to set in the newly created logger. These have no effect if the logger is already present.

Value

The logger retrieved or registered.

Examples

1
2
3
getLogger()  # returns the root logger
getLogger('test.sub')  # constructs a new logger and returns it
getLogger('test.sub')  # returns it again

logging documentation built on July 14, 2019, 5:02 p.m.