Learn R Programming

log4r (version 0.4.4)

create.logger: 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

Run this code

library('log4r')

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

Run the code above in your browser using DataLab