logfile: Get or set the logfile for a logger object.

logfileR Documentation

Get or set the logfile for a logger object.

Description

Get or set the logfile for a logger object.

Usage

logfile(x)

logfile(x) <- value

## S3 method for class 'logger'
logfile(x)

## S3 replacement method for class 'logger'
logfile(x) <- value

Arguments

x

An object of class logger.

value

The path name of a file to be used for logging. Must be a valid path in an already existing directory

Examples


library('log4r')

logger <- create.logger()
print(logfile(logger))
logfile(logger) <- 'debug.log'
debug(logger, 'A Debugging Message')

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