Files | Admin

Notes:

Release Name: 1.1.0

Notes:
This package is a library of methods that perform log rotation.  The
log rotate methods allow the caller to specify options (via
parameters) such as how many rotated files to keep, what type of
extension to place on the rotated file (date or a simple count), and
whether to zip the rotated files.  Live log files (currently being
written to by a live process) can be rotated as well.  The post_rotate
option is useful in that context, as it can be used to send a HUP
signal to notify the live process to reopen its log file.

This package was inspired by the need to have a library version of the
unix logrotate tool.  The unix logrotate tool requires the user to
specify options in a config file, and is usually invoked through cron.


Changes: === 1.1.0 / 2008-08-20 * Enhanced the rotate file methods to return status information regarding the rotation: the newly rotated file, the list of rotated files, the list of deleted files, etc. * Refactored the implementation of the file rotation methods into a separate class (LogRotate::Impl) and exposed a few of these implementation methods for public use.