Yell::Adapters::Datefile

The Datefile adapter is similar to the File adapter. However, it rotates the file at midnight (by default).

Constants

DefaultDatePattern

The default date pattern, e.g. “19820114” (14 Jan 1982)

Header

Metadata

HeaderRegexp

Attributes

date_pattern[RW]

The pattern to be used for the files

@example

date_pattern = "%Y%m%d"       # default
date_pattern = "%Y-week-%V"
header[RW]

You can suppress the first line of the logfile that contains the metadata. This is important upon rollover, because on *nix systems, it is not possible to determine the creation time of a file, on the last access time. The header compensates this.

@example

header = false
keep[RW]

Set the amount of logfiles to keep when rolling over. By default, no files will be cleaned up.

@example Keep the last 5 logfiles

keep = 5
keep = '10'

@example Do not clean up any files

keep = 0

[Validate]

Generated with the Darkfish Rdoc Generator 2.