<p>The format argument to the <code class="directive"><a href="#logformat">LogFormat</a></code> and <code class="directive"><a href="#customlog">CustomLog</a></code> directives is a string. This string is
used to log each request to the log file. It can contain literal
characters copied into the log files and the C-style control
characters "\n" and "\t" to represent new-lines and tabs.
Literal quotes and back-slashes should be escaped with
back-slashes.</p>
<p>The characteristics of the request itself are logged by
placing "<code>%</code>" directives in the format string, which are
replaced in the log file by the values as follows:</p>
<td>The server name according to the <code class="directive"><a href="../mod/core.html#usecanonicalname">UseCanonicalName</a></code> setting.</td></tr>
<tr class="odd"><td><code>%...X</code></td>
<td>Connection status when response is completed:
<table>
<tr><td><code>X</code> =</td>
<td>connection aborted before the response completed.</td></tr>
<tr><td><code>+</code> =</td>
<td>connection may be kept alive after the response is
sent.</td></tr>
<tr><td><code>-</code> = </td>
<td>connection will be closed after the response is
sent.</td></tr>
</table>
<p>(This directive was <code>%...c</code> in late versions of Apache
<p>Note that the canonical <code class="directive"><a href="../mod/core.html#servername">ServerName</a></code> and <code class="directive"><a href="../mod/mpm_common.html#listen">Listen</a></code> of the server serving the
request are used for <code>%v</code> and <code>%p</code>
respectively. This happens regardless of the <code class="directive"><a href="../mod/core.html#usecanonicalname">UseCanonicalName</a></code> setting
because otherwise log analysis programs would have to duplicate
the entire vhost matching algorithm in order to decide what
<p><span>Available Languages: </span><a href="../en/mod/mod_log_config.html" title="English"> en </a> |
<a href="../ja/mod/mod_log_config.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
<a href="../ko/mod/mod_log_config.html" hreflang="ko" rel="alternate" title="Korean"> ko </a></p>
</div><div id="footer">
<p class="apache">Copyright 1999-2004 The Apache Software Foundation.<br />Licensed under the <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0</a>.</p>