Webmaster in a Nutshell, Third Edition

Team-Fly    

 
Webmaster in a Nutshell, 3rd Edition

By Robert Eckstein, Stephen Spainhour

Table of Contents
Chapter 19.  Apache Modules

19.22 mod_log_config

The mod_log_config module provides logging of requests made to the server. See the Apache documentation for an explanation of the logging format.

CookieLog

CookieLog filename

[ server config , or within <VirtualHost>]

Specifies the location of the file where cookie requests can be logged, relative to the ServerRoot. This directive is deprecated.

CustomLog

CustomLog file format

[ server config , or within <VirtualHost>]

Specifies the location of the file where logs can be recorded, either as a fully qualified filename or relative to the ServerRoot. You can instruct the server to use a specific format to log the records using the format parameter. In addition, you can specify a formatting nickname as defined by the LogFormat directive.

LogFormat

LogFormat format [ nickname ]

[ server config , or within <VirtualHost>]

This sets the default format of the log file specified by the TransferLog directive. If you wish, you can also use the directive to declare a nickname for a format. If you specify a nickname, the command does not apply the format as the default. Log formats are defined using the "Common Log Format," which is explained in greater detail in the Apache documentation.

TransferLog

TransferLog filepipe-command

[ server config , or within <VirtualHost>]

Specifies a default log file using a format dictated by the LogFormat command. If you wish, you can specify a pipe () followed by a shell command in place of the filename; this program runs as the user that started the httpd server and receives the log information as standard input. For example:

TransferLog "grep PUT >>.putlog"


Team-Fly    
Top

Категории