create.logger: Creates a logger object.

View source: R/create.logger.R

create.loggerR Documentation

Creates a logger object.

Description

Creates a logger object.

Usage

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


library('log4r')

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

log4r documentation built on Oct. 12, 2024, 9:06 a.m.