Webmaster in a Nutshell

Previous Chapter 24
CERN Server Configuration
Next
 

24.4 Logging

These directives are used to specify locations of log files and their configuration.

AccessLog

AccessLog filename

Specifies the location of the access log file, either as an absolute path or as a relative path from the ServerRoot directory. There is no default setting, but a common one is:

AccessLog logs/http.log

ErrorLog

ErrorLog filename

Specifies the location of the error log file, either as an absolute path or as a relative path from the ServerRoot directory. There is no default setting, but a common one is:

ErrorLog logs/http.error

LogFileDateExt

LogFileDateExt suffix

This directive is used to specify the extension to be used for log file names. It can be used to specify a time/date format for the extension with the following setting:

LogFileDateExt %H:%T

providing the hour and minute separated by a colon (:), for example, 19:40. This setting gives a date format:

LogFileDateExt %d-%m-%Y

for example, 05-30-96. Any combination of the variables may be used. Spaces will be converted to an underscore (_) in the extension. This directive can also set a plain extension such as:

LogFileDateExt log

LogFormat

LogFormat format

The LogFormat directive specifies whether the transfer log should be written in the common log format or the old CERN-specific log format. Acceptable values are:

Old

The "old" CERN-specific log format.

Common

The Common log format.

New

Same as the Common log format.

LogTime

LogTime timezone

The LogTime directive specifies what timestamp should be used in log files. The acceptable time zones are:

LocalTime

Use the local time zone.

GMT

Use Greenwich Mean Time instead.

NoLog

NoLog expression

Tells the server not to log requests for the documents matched by the given expression. For example, to prevent logging of all files in the directory /top_secret/, you would include the following setting:

NoLog /top_secret/*


Previous Home Next
Translation Rules Book Index Script Configuration

HTML: The Definitive Guide CGI Programming JavaScript: The Definitive Guide Programming Perl WebMaster in a Nutshell