From 9fd43ec82e4ab3b3f88057c64c997d2dedebe2eb Mon Sep 17 00:00:00 2001 From: Ken Coar Date: Fri, 12 Sep 1997 14:50:47 +0000 Subject: [PATCH] Changes to mod_log_config to allow naming of format strings. Format nicknames are defined with "LogFormat fmt nickname", and can be used with "LogFormat nickname" and "CustomLog logtarget nickname". git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@79202 13f79535-47bb-0310-9956-ffa450edef68 --- docs/manual/mod/mod_log_config.html | 83 ++++++++++++++++++++++------- 1 file changed, 65 insertions(+), 18 deletions(-) diff --git a/docs/manual/mod/mod_log_config.html b/docs/manual/mod/mod_log_config.html index 8ffc86c5cb..76ebb56c00 100644 --- a/docs/manual/mod/mod_log_config.html +++ b/docs/manual/mod/mod_log_config.html @@ -203,36 +203,79 @@ only for compatibility with mod_cookies, and is deprecated.

+


CustomLog

-Syntax: CustomLog file-pipe format
+Syntax: CustomLog file-pipe + format-or-nickname
Context: server config, virtual host
Status: Base
-Module: mod_log_config

- -The first argument is the filename to log to. This is used -exactly like the argument to TransferLog, that is, -it is either a full path, or relative to the current -server root.

- +Compatibility: Nickname only available in Apache 1.3 + or later +
+Module: mod_log_config +

+The first argument is the filename to which log records should be +written. This is used +exactly like the argument to +TransferLog; +that is, it is either a full path or relative to the current +server root. +

+

The format argument specifies a format for each line of the log file. The options available for the format are exactly the same as for the argument of the LogFormat directive. If the format includes any spaces (which it will do in almost all cases) it should be enclosed in double quotes. - +

+

+Instead of an actual format string, you can use a format nickname defined with +the +LogFormat +directive. +

+

LogFormat

-Syntax: LogFormat string
+Syntax: LogFormat format [nickname] +
Default: LogFormat "%h %l %u %t \"%r\" %s %b"
Context: server config, virtual host
Status: Base
-Module: mod_log_config

- -This sets the format of the logfile. See -Custom Log Formats for details on the format arguments.


- +Compatibility: Nickname only available in Apache 1.3 + or later +
+Module: mod_log_config +

+This sets the format of the default logfile named by the +TransferLog +directive . See the section on +Custom Log Formats for details on the format +arguments. +

+

+If you include a nickname for the format on the directive line, you can +use it in other LogFormat and +CustomLog +directives rather than repeating the entire format string. +

+

+A +LogFormat directive which defines a nickname does +nothing else -- that is, it only defines the nickname, +it doesn't actually apply the format and make it the default. +

+

TransferLog

Syntax: TransferLog file-pipe
@@ -241,7 +284,13 @@ Custom Log Formats for details on the format arguments.


Status: Base
Module: mod_log_config

-The TransferLog directive adds a log file in Common Log Format. +The TransferLog directive adds a log file in the format defined by the +most recent +LogFormat +directive, or Common Log Format if no other default format has been +specified. File-pipe is one of

A filename @@ -259,5 +308,3 @@ was started by root; be sure that the program is secure.

- - -- 2.40.0