Log to a rotating file
Log to a rotating file
Details
An extension of AppenderFile that rotates logfiles based on certain
conditions. Please refer to the documentation of rotor::rotate()
for
the meanings of the extra arguments
Super classes
lgr::Filterable
-> lgr::Appender
-> lgr::AppenderFile
-> AppenderFileRotating
Active bindings
backups
A
data.frame
containing information on path, file size, etc... on the available backups offile
.
Methods
Method new()
Usage
AppenderFileRotating$new(
file,
threshold = NA_integer_,
layout = LayoutFormat$new(),
filters = NULL,
size = Inf,
max_backups = Inf,
compression = FALSE,
backup_dir = dirname(file),
create_file = NULL
)
Arguments
size, max_backups, compression, backup_dir, fmt
see
rotor::rotate()
for the meaning of these arguments. Note thatfmt
corresponds toformat
andbackup_dir
todir
.