class Log4r::RollingFileOutputter

RollingFileOutputter - subclass of FileOutputter that rolls files on size or time. So, given a filename of “error.log”, the first log file will be “error000001.log”. When its check condition is exceeded, it’ll create and log to “error000002.log”, etc.

Additional hash arguments are:

:maxsize

Maximum size of the file in bytes.

:maxtime

Maximum age of the file in seconds.

:max_backups

Maxium number of prior log files to maintain. If max_backups is a positive number,

then each time a roll happens, RollingFileOutputter will delete the oldest backup log files in excess
of this number (if any).  So, if max_backups is 10, then a maximum of 11 files will be maintained (the current
log, plus 10 backups). If max_backups is 0, no backups will be kept. If it is negative (the default),
there will be no limit on the number of files created. Note that the sequence numbers will continue to escalate;
old sequence numbers are not reused.
:trunc

If true, deletes ALL existing log files (based on :filename) upon initialization,

and the sequence numbering will start over at 000001. Otherwise continues logging where it left off
last time (i.e. either to the file with the highest sequence number, or a new file, as appropriate).