1 <?xml version="1.0" encoding="UTF-8" ?>
2 <!DOCTYPE modulesynopsis SYSTEM "../style/modulesynopsis.dtd">
3 <?xml-stylesheet type="text/xsl" href="../style/manual.ja.xsl"?>
4 <!-- English Revision: 420990:1793290 (outdated) -->
7 Licensed to the Apache Software Foundation (ASF) under one or more
8 contributor license agreements. See the NOTICE file distributed with
9 this work for additional information regarding copyright ownership.
10 The ASF licenses this file to You under the Apache License, Version 2.0
11 (the "License"); you may not use this file except in compliance with
12 the License. You may obtain a copy of the License at
14 http://www.apache.org/licenses/LICENSE-2.0
16 Unless required by applicable law or agreed to in writing, software
17 distributed under the License is distributed on an "AS IS" BASIS,
18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
19 See the License for the specific language governing permissions and
20 limitations under the License.
23 <modulesynopsis metafile="mod_logio.xml.meta">
25 <name>mod_logio</name>
26 <description>リクエスト毎に入力バイト数と出力バイト数とをロギング</description>
27 <status>Extension</status>
28 <sourcefile>mod_logio.c</sourcefile>
29 <identifier>logio_module</identifier>
33 <p>このモジュールはリクエストごとに受け取ったバイト数と
34 送信したバイト数のロギングを行なう機能を提供します。
35 記録される数字はリクエストのヘッダとレスポンスの本体を
36 反映した、実際にネットワークで受け取ったバイト値です。
37 入力では SSL/TLS の前に、出力では SSL/TLS の後に数えるので、
38 数字は暗号による変化も正しく反映したものになります。</p>
40 <p>このモジュールの使用には <module>mod_log_config</module> モジュールが
45 <seealso><module>mod_log_config</module></seealso>
46 <seealso><a href="../logs.html">Apache ログファイル</a></seealso>
48 <section id="formats">
49 <title>カスタムログ書式</title>
51 <p>このモジュールは新しいロギング用ディレクティブを加えます。
52 リクエスト自身の特徴はフォーマット文字列に、以下の様に置換される
53 "<code>%</code>" ディレクティブを
56 <table border="1" style="zebra">
57 <tr><th>フォーマット文字列</th>
60 <tr><td><code>%...I</code></td>
61 <td>リクエストとヘッダを含む、受け取ったバイト数。
64 <tr><td><code>%...O</code></td>
65 <td>ヘッダを含む、送信したバイト数。0 にはならない。</td></tr>
68 <p>通常、この機能は以下の様に使用されます:</p>
72 <dd><code>"%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
73 \"%{User-agent}i\" %I %O"</code></dd>