Cronolog was originally designed to work with Apache logging modules, and
this remains one of it's primary uses. To that end, I have included some
example configuration directives for Apache 1.x below (note that some of
these are already in place, on default Debian installations of Apache).


# The following directives define some format nicknames for use with
# a CustomLog directive (see below).

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %T %v" full

LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined

LogFormat "%h %l %u %t \"%r\" %>s %b" common

LogFormat "%{Referer}i -> %U" referer

LogFormat "%{User-agent}i" agent

# The location of the access logfile (Common Logfile Format).
# If this does not start with /, ServerRoot is prepended to it.
# If it starts with |, the Debian cron scripts will not rotate it.

CustomLog "|/usr/bin/cronolog /var/log/apache/access.%Y.%m.log" combined
