log4r (version 0.4.3)

logformat: Get or set the format string for a logger object.

Description

Get or set the format string for a logger object.

Usage

logformat(x)

logformat(x) <- value

# S3 method for logger logformat(x)

# S3 method for logger logformat(x) <- value

Arguments

x

An object of class logger.

value

A string containing a proper format string.

Examples

Run this code

library('log4r')

logger <- create.logger(logfile = 'debugging.log', level = 'DEBUG')
print(logformat(logger))
logformat(logger) <- 'FORMAT STRING'

Run the code above in your browser using DataLab