Log to a rotating file
Log to a rotating file
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
lgr::Filterable
-> lgr::Appender
-> lgr::AppenderFile
-> AppenderFileRotating
backups
A data.frame
containing information on path, file size,
etc... on the available backups of file
.
new()
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
)
size, max_backups, compression, backup_dir, fmt
see rotor::rotate()
for the meaning of these arguments. Note that
fmt
corresponds to format
and backup_dir
to dir
.
append()
format()