• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 19. Apache Modules > mod_log_config

19.27. 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.

(Apache 1.3 or later)

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.

(Apache 1.2 or later)

TransferLog

TransferLog file|pipe-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"

(Apache 1.2 or later)


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint