create.logger: Creates a logger object.

Description Usage Arguments See Also Examples

View source: R/create.logger.R

Description

Creates a logger object.

Usage

1
create.logger(logfile = "logfile.log", level = "FATAL", logformat = NULL)

Arguments

logfile

The full pathname of the file you want log messages to be written to.

level

The level at which the logger is initialized. Will be coerced using as.loglevel.

logformat

The format string used when writing messages to the log file.

See Also

loglevel, level.logger

Examples

1
2
3
library('log4r')

logger <- create.logger(logfile = 'debugging.log', level = "DEBUG")

log4r documentation built on Nov. 4, 2021, 9:09 a.m.