plainblack.com
Username Password
search
Bookmark and Share
Subscribe

customizing modperl error logs

If you want to globally change how modperl logs or the location/name of it's logfiles, you'll want to modify /data/wre/etc/modperl.conf,

If you want to modify the modperl on a per site basis, you want to modify the modperl config file for each site you want to customize. (data/wre/etc/*.modperl)

The following are pertainant directives. Comments below are taken from the /data/wre/etc/modperl.conf file.

ErrorLog: The location of the error log file. If you do not specify an ErrorLog directive within a <VirtualHost> container, error messages relating to that virtual host will be logged here.  If you *do* define an error logfile for a <VirtualHost> container, that host's errors will be logged there and not here.

Example:

ErrorLog /data/wre/var/logs/modperl.error.log


LogLevel: Control the number of messages logged to the error_log. Possible values include: debug, info, notice, warn, error, crit, alert, emerg.

Example:

LogLevel warn


LogFormat: defines some format nicknames for use with a CustomLog directive (see below).

Example:

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


CustomLog: The location and format of the access logfile (Common Logfile Format). If you do not define any access logfiles within a <VirtualHost> container, they will be logged here.  If you *do* define per-<VirtualHost> access logfiles, transactions will be logged therein and *not* in this file.

Example:

CustomLog /data/wre/var/logs/access.log common



If you would like to have agent and referer logfiles, uncomment the following directives.

Example:

CustomLog /data/wre/var/logs/referer_log referer
CustomLog /data/wre/var/logs/agent_log agent


If you prefer a single logfile with access, agent, and referer information (Combined Logfile Format) you can use the following directive.

Example:

CustomLog /data/wre/var/logs/access_log combined




Keywords: logfiles modperl

Search | Most Popular | Recent Changes | Wiki Home
© 2012 Plain Black Corporation | All Rights Reserved