1
0
mirror of https://github.com/apache/httpd.git synced 2026-01-06 09:01:14 +03:00

Altering the "somewhat similar" to default example to actually be the

default format.


git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1172173 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Rich Bowen
2011-09-18 02:54:33 +00:00
parent f08932bf97
commit 753d2588d1
2 changed files with 22 additions and 4 deletions

View File

@@ -1464,11 +1464,20 @@ in case of an error</td></tr>
with error log lines. If <code class="module"><a href="../mod/mod_unique_id.html">mod_unique_id</a></code> is loaded, its
unique id will be used as log ID for requests.</p>
<div class="example"><h3>Example (somewhat similar to default format)</h3><p><code>
ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P] %7F: %E: [client\ %a]
<div class="example"><h3>Example (default format)</h3><p><code>
ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a]
%M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
</code></p></div>
<p>This would result in error messages such as:</p>
<div class="example"><p><code>
[Thu May 12 08:28:57.652118 2011] [core:error] [pid 8777:tid 4326490112] [client ::1:58619] File does not exist: /usr/local/apache2/htdocs/favicon.ico
</code></p></div>
<p>Notice that, as discussed above, some fields are ommitted
entirely because they are not defined.</p>
<div class="example"><h3>Example (similar to the 2.2.x format)</h3><p><code>
ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a]
%M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"

View File

@@ -1432,11 +1432,20 @@ in case of an error</description>
with error log lines. If <module>mod_unique_id</module> is loaded, its
unique id will be used as log ID for requests.</p>
<example><title>Example (somewhat similar to default format)</title>
ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P] %7F: %E: [client\ %a]
<example><title>Example (default format)</title>
ErrorLogFormat "[%{u}t] [%-m:%l] [pid %P:tid %T] %7F: %E: [client\ %a]
%M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"
</example>
<p>This would result in error messages such as:</p>
<example>
[Thu May 12 08:28:57.652118 2011] [core:error] [pid 8777:tid 4326490112] [client ::1:58619] File does not exist: /usr/local/apache2/htdocs/favicon.ico
</example>
<p>Notice that, as discussed above, some fields are ommitted
entirely because they are not defined.</p>
<example><title>Example (similar to the 2.2.x format)</title>
ErrorLogFormat "[%t] [%l] %7F: %E: [client\ %a]
%M%&nbsp;,\&nbsp;referer\&nbsp;%{Referer}i"