summaryrefslogtreecommitdiffstats
path: root/docs/manual/mod/mod_log_debug.html.en
diff options
context:
space:
mode:
authorDaniel Gruno <humbedooh@apache.org>2012-04-27 14:59:32 +0200
committerDaniel Gruno <humbedooh@apache.org>2012-04-27 14:59:32 +0200
commit8fa573336000d9ccbcc51209992c8455ea3af05a (patch)
treecf8ad4fe511e505c85bfa76c98129c7f33c3c657 /docs/manual/mod/mod_log_debug.html.en
parentxforms that somehow snuck past the build system (diff)
downloadapache2-8fa573336000d9ccbcc51209992c8455ea3af05a.tar.xz
apache2-8fa573336000d9ccbcc51209992c8455ea3af05a.zip
Even more xforms that somehow didn't trigger earlier. I wonder if they're silently revolting against me.
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1331408 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'docs/manual/mod/mod_log_debug.html.en')
-rw-r--r--docs/manual/mod/mod_log_debug.html.en41
1 files changed, 22 insertions, 19 deletions
diff --git a/docs/manual/mod/mod_log_debug.html.en b/docs/manual/mod/mod_log_debug.html.en
index 3ba6e881db..4c1e2d2099 100644
--- a/docs/manual/mod/mod_log_debug.html.en
+++ b/docs/manual/mod/mod_log_debug.html.en
@@ -48,20 +48,22 @@
<li>
Log message after request to /foo/* is processed:
- <div class="example"><p><code>
- &lt;Location /foo/&gt;<br />
- &nbsp;&nbsp;LogMessage "/foo/ has been requested"<br />
- &lt;/Location&gt;<br />
- </code></p></div>
+ <pre class="prettyprint lang-config">
+&lt;Location /foo/&gt;
+&nbsp;&nbsp;LogMessage "/foo/ has been requested"
+&lt;/Location&gt;
+ </pre>
+
</li>
<li>
Log message if request to /foo/* is processed in a sub-request:
- <div class="example"><p><code>
- &lt;Location /foo/&gt;<br />
- &nbsp;&nbsp;LogMessage "subrequest to /foo/" hook=type_checker expr=%{IS_SUBREQ}<br />
- &lt;/Location&gt;<br />
- </code></p></div>
+ <pre class="prettyprint lang-config">
+&lt;Location /foo/&gt;
+&nbsp;&nbsp;LogMessage "subrequest to /foo/" hook=type_checker expr=%{IS_SUBREQ}
+&lt;/Location&gt;
+ </pre>
+
The default log_transaction hook is not executed for sub-requests,
therefore we have to use a different hook.
@@ -70,21 +72,22 @@
<li>
Log message if an IPv6 client causes a request timeout:
- <div class="example"><p><code>
- LogMessage "IPv6 timeout from %{REMOTE_ADDR}"
- "expr=-T %{IPV6} &amp;&amp; %{REQUEST_STATUS} = 408"
- </code></p></div>
+ <pre class="prettyprint lang-config">
+ LogMessage "IPv6 timeout from %{REMOTE_ADDR}" "expr=-T %{IPV6} &amp;&amp; %{REQUEST_STATUS} = 408"
+ </pre>
+
Note the placing of the double quotes for the <code>expr=</code> argument.
</li>
<li>
Log the value of the "X-Foo" request environment variable in each
stage of the request:
- <div class="example"><p><code>
- &lt;Location /&gt;<br />
- &nbsp;&nbsp;LogMessage "%{reqenv:X-Foo}" hook=all<br />
- &lt;/Location&gt;<br />
- </code></p></div>
+ <pre class="prettyprint lang-config">
+&lt;Location /&gt;
+&nbsp;&nbsp;LogMessage "%{reqenv:X-Foo}" hook=all
+&lt;/Location&gt;
+ </pre>
+
Together with microsecond time stamps in the error log,
<code>hook=all</code> also allows to determine the times spent
in the different parts of the request processing.