Learn R Programming

W4MRUtils (version 1.2.1)

get_logger: Instantiate a Logger

Description

Create a logger of the given name. You can call again get_logger and provide the same name to get the same logger. It will not be recreated unless recreate is TRUE.

Usage

get_logger(name, recreate = FALSE, ...)

Value

A new W4MLogger instance if it did not exist or if recreate is TRUE. Otherwise, a new W4MLogger instance.

Arguments

name

the name of the logger to get or create. This name will be used in logs to differentiate from which part of you program comes which lines of log. See the example of usage bellow.

recreate

logical=FALSE tells whether to recreate the logger of the given name or not. Preferably, one should not recreate a new logger each time.

...

Parameters passed out to the W4MLogger() function

Author

L.Pavot

Details

get_logger