getLogger: set defaults and get the named logger

Description Usage Arguments Examples

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.

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


Search within the logging package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.