2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.en.xsl"?>
6 Copyright 2002-2004 The Apache Software Foundation
8 Licensed under the Apache License, Version 2.0 (the "License");
9 you may not use this file except in compliance with the License.
10 You may obtain a copy of the License at
12 http://www.apache.org/licenses/LICENSE-2.0
14 Unless required by applicable law or agreed to in writing, software
15 distributed under the License is distributed on an "AS IS" BASIS,
16 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 See the License for the specific language governing permissions and
18 limitations under the License.
21 <modulesynopsis metafile="mod_logio.xml.meta">
23 <name>mod_logio</name>
24 <description>Logging of input and output bytes per request</description>
25 <status>Extension</status>
26 <sourcefile>mod_logio.c</sourcefile>
27 <identifier>logio_module</identifier>
31 <p>This module provides the logging of input and output number of
32 bytes received/sent per request. The numbers reflect the actual bytes
33 as received on the network, which then takes into account the
34 headers and bodies of requests and responses. The counting is done
35 before SSL/TLS on input and after SSL/TLS on output, so the numbers
36 will correctly reflect any changes made by encryption.</p>
38 <p>This module requires <module>mod_log_config</module>.</p>
42 <seealso><module>mod_log_config</module></seealso>
43 <seealso><a href="../logs.html">Apache Log Files</a></seealso>
45 <section id="formats">
46 <title>Custom Log Formats</title>
48 <p>This modules adds two new logging directives. The characteristics of the
49 request itself are logged by placing "<code>%</code>" directives in
50 the format string, which are replaced in the log file by the values as
53 <table border="1" style="zebra">
54 <tr><th>Format String</th>
55 <th>Description</th></tr>
57 <tr><td><code>%...I</code></td>
58 <td>Bytes received, including request and headers, cannot be
61 <tr><td><code>%...O</code></td>
62 <td>Bytes sent, including headers, cannot be zero.</td></tr>
65 <p>Usually, the functionality is used like this:</p>
68 <dt>Combined I/O log format:</dt>
69 <dd><code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
70 \"%{User-agent}i\" %I %O"</code></dd>