Log to a time-stamped rotating file
Log to a time-stamped rotating file
Log to a time-stamped rotating file
lgr::Filterable -> lgr::Appender -> lgr::AppenderFile -> lgr::AppenderFileRotating -> AppenderFileRotating
cache_backupsTRUE or FALSE. If TRUE (the default) the list of backups is cached,
if FALSE it is read from disk every time this appender triggers.
Caching brings a significant speedup for checking whether to rotate or
not based on the age of the last backup, but is only safe if
there are no other programs/functions (except this appender) interacting
with the backups.
new()
AppenderFileRotatingTime$new( file, threshold = NA_integer_, layout = LayoutFormat$new(), filters = NULL, age = Inf, size = -1, max_backups = Inf, compression = FALSE, backup_dir = dirname(file), fmt = "%Y-%m-%d--%H-%M-%S", overwrite = FALSE, cache_backups = TRUE, create_file = NULL )
size, age, max_backups, compression, backup_dir, fmt, overwrite, cache_backupssee rotor::rotate_time() for the meaning of these arguments. Note that
fmt corresponds to format and backup_dir to dir.
rotate()
AppenderFileRotatingTime$rotate(force = FALSE, now = Sys.time())
set_age()
AppenderFileRotatingTime$set_age(x)
set_fmt()
AppenderFileRotatingTime$set_fmt(x)
set_overwrite()
AppenderFileRotatingTime$set_overwrite(x)
set_cache_backups()
set the cache_backups flag.
AppenderFileRotatingTime$set_cache_backups(x)
xa logical scalar
format()
AppenderFileRotatingTime$format(color = FALSE, ...)
clone()
The objects of this class are cloneable with this method.
AppenderFileRotatingTime$clone(deep = FALSE)
deepWhether to make a deep clone.
Other Appenders: 
AppenderBuffer,
AppenderConsole,
AppenderFileRotatingDate,
AppenderFileRotating,
AppenderFile,
AppenderTable,
Appender
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.