]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
A note about per-module logging.
authorRich Bowen <rbowen@apache.org>
Sat, 25 Sep 2010 15:57:41 +0000 (15:57 +0000)
committerRich Bowen <rbowen@apache.org>
Sat, 25 Sep 2010 15:57:41 +0000 (15:57 +0000)
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1001245 13f79535-47bb-0310-9956-ffa450edef68

docs/manual/logs.html.en
docs/manual/logs.xml

index 69d496fe0a9899c98e8948e265af8b20d64d31e9..fc1c00c53d639c8ff24101a86677d75682cca0e2 100644 (file)
@@ -36,6 +36,7 @@
 <div id="quickview"><ul id="toc"><li><img alt="" src="./images/down.gif" /> <a href="#overview">Overview</a></li>
 <li><img alt="" src="./images/down.gif" /> <a href="#security">Security Warning</a></li>
 <li><img alt="" src="./images/down.gif" /> <a href="#errorlog">Error Log</a></li>
+<li><img alt="" src="./images/down.gif" /> <a href="#permodule">Per-module logging</a></li>
 <li><img alt="" src="./images/down.gif" /> <a href="#accesslog">Access Log</a></li>
 <li><img alt="" src="./images/down.gif" /> <a href="#rotation">Log Rotation</a></li>
 <li><img alt="" src="./images/down.gif" /> <a href="#piped">Piped Logs</a></li>
     </code></p></div>
   </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
 <div class="section">
+<h2><a name="permodule" id="permodule">Per-module logging</a></h2>
+    
+
+    <p>The <code class="directive"><a href="./mod/core.html#loglevel">LogLevel</a></code> directive
+    allows you to specify a log severity level on a per-module basis. In
+    this way, if you are troubleshooting a problem with just one
+    particular module, you can turn up its logging volume without also
+    getting the details of other modules that you're not interested in.
+    This is particularly useful for modules such as
+    <code class="module"><a href="./mod/mod_proxy.html">mod_proxy</a></code> or <code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code> where you
+    want to know details about what it's trying to do.</p>
+
+    <p>Do this by specifying the name of the module in your
+    <code class="directive">LogLevel</code> directive:</p>
+
+    <div class="example"><p><code>
+    LogLevel info rewrite:trace5
+    </code></p></div>
+
+    <p>This sets the main <code class="directive">LogLevel</code> to info, but
+    turns it up to <code>trace5</code> for
+    <code class="module"><a href="./mod/mod_rewrite.html">mod_rewrite</a></code>.</p>
+
+    <div class="note">This replaces the per-module logging directives, such as
+    <code>RewriteLog</code>, that were present in earlier versions of
+    the server.</div>
+  </div><div class="top"><a href="#page-header"><img alt="top" src="./images/up.gif" /></a></div>
+<div class="section">
 <h2><a name="accesslog" id="accesslog">Access Log</a></h2>
     
 
index dd44199c7b26671dfe3df4eaf44653593eaf0fc4..4ac8a6008fba6e4dead201429d15a7f865e79b60 100644 (file)
     </example>
   </section>
 
+  <section id="permodule">
+    <title>Per-module logging</title>
+
+    <p>The <directive module="core">LogLevel</directive> directive
+    allows you to specify a log severity level on a per-module basis. In
+    this way, if you are troubleshooting a problem with just one
+    particular module, you can turn up its logging volume without also
+    getting the details of other modules that you're not interested in.
+    This is particularly useful for modules such as
+    <module>mod_proxy</module> or <module>mod_rewrite</module> where you
+    want to know details about what it's trying to do.</p>
+
+    <p>Do this by specifying the name of the module in your
+    <directive>LogLevel</directive> directive:</p>
+
+    <example>
+    LogLevel info rewrite:trace5
+    </example>
+
+    <p>This sets the main <directive>LogLevel</directive> to info, but
+    turns it up to <code>trace5</code> for
+    <module>mod_rewrite</module>.</p>
+
+    <note>This replaces the per-module logging directives, such as
+    <code>RewriteLog</code>, that were present in earlier versions of
+    the server.</note>
+  </section>
+
   <section id="accesslog">
     <title>Access Log</title>