Get or set the format string for a logger object.

logformat(x)

logformat(x) <- value

# S3 method for class 'logger'
logformat(x)

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

Arguments

x

An object of class logger.

value

A string containing a proper format string.

Examples


library('log4r')

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