24.4 LoggingThese directives are used to specify locations of log files and their configuration. AccessLogAccessLog 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 ErrorLogErrorLog 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 LogFileDateExtLogFileDateExt 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 LogFormatLogFormat 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:
LogTimeLogTime timezone The LogTime directive specifies what timestamp should be used in log files. The acceptable time zones are:
NoLogNoLog 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/* |
|