| logfile {log4r} | R Documentation |
Get or set the logfile for a logger object.
logfile(x) logfile(x) <- value ## S3 method for class 'logger' logfile(x) ## S3 replacement method for class 'logger' logfile(x) <- value
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 |
library('log4r')
logger <- create.logger()
print(logfile(logger))
logfile(logger) <- 'debug.log'
debug(logger, 'A Debugging Message')