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

logformatR Documentation

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 class 'logger'
logformat(x)

## S3 replacement 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))
logformat(logger) <- 'FORMAT STRING'

log4r documentation built on Oct. 12, 2024, 9:06 a.m.