| 1 |
# ErrorLog: The location of the error log file.
|
| 2 |
# If you do not specify an ErrorLog directive within a <VirtualHost>
|
| 3 |
# container, error messages relating to that virtual host will be
|
| 4 |
# logged here. If you *do* define an error logfile for a <VirtualHost>
|
| 5 |
# container, that host's errors will be logged there and not here.
|
| 6 |
ErrorLog /var/log/apache2/error_log
|
| 7 |
|
| 8 |
# LogLevel: Control the number of messages logged to the error_log.
|
| 9 |
# Possible values include: debug, info, notice, warn, error, crit,
|
| 10 |
# alert, emerg.
|
| 11 |
LogLevel warn
|
| 12 |
|
| 13 |
<IfModule log_config_module>
|
| 14 |
# The following directives define some format nicknames for use with
|
| 15 |
# a CustomLog directive (see below).
|
| 16 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\"" combined
|
| 17 |
LogFormat "%h %l %u %t \"%r\" %>s %b" common
|
| 18 |
|
| 19 |
LogFormat "%{Referer}i -> %U" referer
|
| 20 |
LogFormat "%{User-Agent}i" agent
|
| 21 |
LogFormat "%v %h %l %u %t \"%r\" %>s %b %T" script
|
| 22 |
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i VLOG=%{VLOG}e" vhost
|
| 23 |
|
| 24 |
<IfModule logio_module>
|
| 25 |
# You need to enable mod_logio.c to use %I and %O
|
| 26 |
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" combinedio
|
| 27 |
LogFormat "%v %h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i\" %I %O" vhostio
|
| 28 |
</IfModule>
|
| 29 |
|
| 30 |
# The location and format of the access logfile (Common Logfile Format).
|
| 31 |
# If you do not define any access logfiles within a <VirtualHost>
|
| 32 |
# container, they will be logged here. Contrariwise, if you *do*
|
| 33 |
# define per-<VirtualHost> access logfiles, transactions will be
|
| 34 |
# logged therein and *not* in this file.
|
| 35 |
CustomLog /var/log/apache2/access_log common
|
| 36 |
|
| 37 |
# If you would like to have agent and referer logfiles,
|
| 38 |
# uncomment the following directives.
|
| 39 |
#CustomLog /var/log/apache2/referer_log referer
|
| 40 |
#CustomLog /var/log/apache2/agent_logs agent
|
| 41 |
|
| 42 |
# If you prefer a logfile with access, agent, and referer information
|
| 43 |
# (Combined Logfile Format) you can use the following directive.
|
| 44 |
#CustomLog /var/log/apache2/access_log combined
|
| 45 |
</IfModule>
|
| 46 |
|
| 47 |
# vim: ts=4 filetype=apache
|