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

logfile {log4r} | R 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')

[Package log4r version 0.4.2 Index]