|
cronolog is intended to be used in your Virtual Server Web
Server Configuration File (~/www/conf/httpd.conf)
to split the access log file, or other log files, into daily or
monthly log files, like in the following example.
TransferLog "|/usr/local/cronolog/cronolog /www/logs/%Y/%m/%d/access.log"
ErrorLog "|/usr/local/cronolog/cronolog /www/logs/%Y/%m/%d/errors.log"
The sample
configuration directives above instruct Apache to pipe its access
and error log messages into separate copies of cronolog,
which would create new log files each day in a directory hierarchy
structured by date, i.e. on 31 December 1996 messages would be written
to the following files.
~/www/logs/1996/12/31/access.log
~/www/logs/1996/12/31/errors.log
After midnight
the following filenames would be written, with the directories 1997,
1997/01 and 1997/01/01 being created if they did not
already exist.
~/www/logs/1997/01/01/access.log
~/www/logs/1997/01/01/errors.log
|