<hr><h2><a name="LogFormat">LogFormat</a> <a name="logformat">Directive</a></h2><table cellpadding="1" cellspacing="0" border="0" bgcolor="#cccccc"><tr><td><table bgcolor="#ffffff"><tr><td nowrap="nowrap"><strong>Description:
</strong></td><td>Describes a format for use in a log file</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Syntax" class="help">Syntax:
</a></td><td>LogFormat
- <em>format</em>|<em>nickname</em> [<em>nickname</em>]</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Context" class="help">Context:
+ <em>format</em>|<em>nickname</em> [<em>nickname</em>]</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Default" class="help">Default:
+ </a></td><td><code>LogFormat "%h %l %u %t \"%r\" %>s %b"</code></td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Context" class="help">Context:
</a></td><td>server config, virtual
host</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Status" class="help">Status:
</a></td><td>Base</td></tr><tr><td nowrap="nowrap"><a href="directive-dict.html#Module" class="help">Module:
<code class="directive">CustomLog</code> directives rather than
repeating the entire format string. A
<code class="directive">LogFormat</code>
- directive which defines a nickname <strong>does nothing
+ directive that defines a nickname <strong>does nothing
else</strong> -- that is, it <em>only</em> defines the
nickname, it doesn't actually apply the format and make it the
default. Therefore, it will not affect subsequent
- <code class="directive">TransferLog</code> directives.</p>
+ <code class="directive">TransferLog</code> directives. In addition,
+ <code class="directive">TransferLog</code> cannot use one nickname
+ to define another nickname.</p>
<p>For example:</p>
<description>Describes a format for use in a log file</description>
<syntax>LogFormat
<em>format</em>|<em>nickname</em> [<em>nickname</em>]</syntax>
+<default>LogFormat "%h %l %u %t \"%r\" %>s %b"</default>
<contextlist><context>server config</context><context>virtual
host</context></contextlist>
<compatibility>Nickname only available in Apache 1.3 or later.
<directive>CustomLog</directive> directives rather than
repeating the entire format string. A
<directive>LogFormat</directive>
- directive which defines a nickname <strong>does nothing
+ directive that defines a nickname <strong>does nothing
else</strong> -- that is, it <em>only</em> defines the
nickname, it doesn't actually apply the format and make it the
default. Therefore, it will not affect subsequent
- <directive>TransferLog</directive> directives.</p>
+ <directive>TransferLog</directive> directives. In addition,
+ <directive>TransferLog</directive> cannot use one nickname
+ to define another nickname.</p>
<p>For example:</p>