Class Lumberjack::Device::DateRollingLogFile
In: lib/lumberjack/device/date_rolling_log_file.rb
Parent: RollingLogFile

This log device will append entries to a file and roll the file periodically by date. Files are rolled at midnight and can be rolled daily, weekly, or monthly. Archive file names will have the date appended to them in the format ".YYYY-MM-DD" for daily, ".week-of-YYYY-MM-DD" for weekly and ".YYYY-MM" for monthly. It is not guaranteed that log messages will break exactly on the roll period as buffered entries will always be written to the same file.

Methods

Public Class methods

Create a new logging device to the specified file. The period to roll the file is specified with the :roll option which may contain a value of :daily, :weekly, or :monthly.

Public Instance methods

Protected Instance methods

[Validate]