log4r (version 0.2)

logfile: 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
"logfile"(x)
"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

Run this code
library('log4r')

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

Run the code above in your browser using DataLab