AppenderFileRotatingDate: Log to a date-stamped rotating file

AppenderFileRotatingDateR Documentation

Log to a date-stamped rotating file

Description

Log to a date-stamped rotating file

Log to a date-stamped rotating file

Details

This is a simpler version of AppenderFileRotatingTime when the timestamps do not need to include sub-day accuracy.

Super classes

lgr::Filterable -> lgr::Appender -> lgr::AppenderFile -> lgr::AppenderFileRotating -> AppenderFileRotatingDate

Methods

Public methods

Inherited methods

Method new()

Usage
AppenderFileRotatingDate$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",
  overwrite = FALSE,
  cache_backups = TRUE,
  create_file = NULL
)
Arguments
size, age, max_backups, compression, backup_dir, fmt, overwrite, cache_backups

see rotor::rotate_date() for the meaning of these arguments. Note that fmt corresponds to format (because $format has a special meaning for R6 classes).


Method clone()

The objects of this class are cloneable with this method.

Usage
AppenderFileRotatingDate$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

AppenderFileRotatingTime, AppenderFileRotating, rotor::rotate()

Other Appenders: AppenderBuffer, AppenderConsole, AppenderFileRotatingTime, AppenderFileRotating, AppenderFile, AppenderTable, Appender


lgr documentation built on Sept. 6, 2022, 1:05 a.m.