Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

AppenderFileRotatingDate

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

Methods

Public 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


lgr

A Fully Featured Logging Framework

v0.4.2
MIT + file LICENSE
Authors
Stefan Fleck [aut, cre] (<https://orcid.org/0000-0003-3344-9851>)
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.