1 <?xml version="1.0" encoding="ISO-8859-1"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><!--
4 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
5 This file is generated from xml source: DO NOT EDIT
6 XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
8 <title>mod_logio - Apache HTTP Server</title>
9 <link href="../style/css/manual.css" rel="stylesheet" media="all" type="text/css" title="Main stylesheet" />
10 <link href="../style/css/manual-loose-100pc.css" rel="alternate stylesheet" media="all" type="text/css" title="No Sidebar - Default font size" />
11 <link href="../style/css/manual-print.css" rel="stylesheet" media="print" type="text/css" />
12 <link href="../images/favicon.ico" rel="shortcut icon" /></head>
14 <div id="page-header">
15 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p>
16 <p class="apache">Apache HTTP Server Version 2.3</p>
17 <img alt="" src="../images/feather.gif" /></div>
18 <div class="up"><a href="./"><img title="<-" alt="<-" src="../images/left.gif" /></a></div>
20 <a href="http://www.apache.org/">Apache</a> > <a href="http://httpd.apache.org/">HTTP Server</a> > <a href="http://httpd.apache.org/docs/">Documentation</a> > <a href="../">Version 2.3</a> > <a href="./">Modules</a></div>
21 <div id="page-content">
22 <div id="preamble"><h1>Apache Module mod_logio</h1>
24 <p><span>Available Languages: </span><a href="../en/mod/mod_logio.html" title="English"> en </a> |
25 <a href="../ja/mod/mod_logio.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
26 <a href="../ko/mod/mod_logio.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
27 <a href="../tr/mod/mod_logio.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
29 <table class="module"><tr><th><a href="module-dict.html#Description">Description:</a></th><td>Logging of input and output bytes per request</td></tr>
30 <tr><th><a href="module-dict.html#Status">Status:</a></th><td>Extension</td></tr>
31 <tr><th><a href="module-dict.html#ModuleIdentifier">Module Identifier:</a></th><td>logio_module</td></tr>
32 <tr><th><a href="module-dict.html#SourceFile">Source File:</a></th><td>mod_logio.c</td></tr></table>
36 <p>This module provides the logging of input and output number of
37 bytes received/sent per request. The numbers reflect the actual bytes
38 as received on the network, which then takes into account the
39 headers and bodies of requests and responses. The counting is done
40 before SSL/TLS on input and after SSL/TLS on output, so the numbers
41 will correctly reflect any changes made by encryption.</p>
43 <p>This module requires <code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code>.</p>
45 <div class="note">When KeepAlive connections are used with SSL, the overhead of the SSL
46 handshake is reflected in the byte count of the first request on the
47 connection. When per-directory SSL renegotiation occurs, the bytes are associated
48 with the request that triggered the renegotiation.</div>
51 <div id="quickview"><h3 class="directives">Directives</h3>
52 <p>This module provides no
56 <li><img alt="" src="../images/down.gif" /> <a href="#formats">Custom Log Formats</a></li>
57 </ul><h3>See also</h3>
59 <li><code class="module"><a href="../mod/mod_log_config.html">mod_log_config</a></code></li>
60 <li><a href="../logs.html">Apache Log Files</a></li>
62 <div class="top"><a href="#page-header"><img alt="top" src="../images/up.gif" /></a></div>
64 <h2><a name="formats" id="formats">Custom Log Formats</a></h2>
67 <p>This modules adds two new logging directives. The characteristics of the
68 request itself are logged by placing "<code>%</code>" directives in
69 the format string, which are replaced in the log file by the values as
72 <table class="bordered"><tr class="header"><th>Format String</th>
73 <th>Description</th></tr>
74 <tr><td><code>%...I</code></td>
75 <td>Bytes received, including request and headers, cannot be
77 <tr class="odd"><td><code>%...O</code></td>
78 <td>Bytes sent, including headers, cannot be zero.</td></tr>
81 <p>Usually, the functionality is used like this:</p>
84 <dt>Combined I/O log format:</dt>
85 <dd><code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
86 \"%{User-agent}i\" %I %O"</code></dd>
90 <div class="bottomlang">
91 <p><span>Available Languages: </span><a href="../en/mod/mod_logio.html" title="English"> en </a> |
92 <a href="../ja/mod/mod_logio.html" hreflang="ja" rel="alternate" title="Japanese"> ja </a> |
93 <a href="../ko/mod/mod_logio.html" hreflang="ko" rel="alternate" title="Korean"> ko </a> |
94 <a href="../tr/mod/mod_logio.html" hreflang="tr" rel="alternate" title="Türkçe"> tr </a></p>
95 </div><div id="footer">
96 <p class="apache">Copyright 2010 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>
97 <p class="menu"><a href="../mod/">Modules</a> | <a href="../mod/directives.html">Directives</a> | <a href="../faq/">FAQ</a> | <a href="../glossary.html">Glossary</a> | <a href="../sitemap.html">Sitemap</a></p></div>