powered by
Get or set the logfile for a logger object.
logfile(x)logfile(x) <- value# S3 method for logger logfile(x)# S3 method for logger logfile(x) <- value
logfile(x) <- value
# S3 method for logger logfile(x)
# S3 method for logger logfile(x) <- value
An object of class logger.
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')
Run the code above in your browser using DataLab