mod_log_config.xml.ja revision 6771d932c350b8af84039f3c71ebf9313dd52569
<?xml version="1.0" encoding="iso-2022-jp"?>
<!DOCTYPE modulesynopsis SYSTEM "/style/modulesynopsis.dtd">
<?xml-stylesheet type="text/xsl" href="/style/manual.ja.xsl"?>
<!-- English Revision: 165671:178530 (outdated) -->
<!--
Copyright 2002-2005 The Apache Software Foundation or its licensors, as
applicable.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<modulesynopsis metafile="mod_log_config.xml.meta">
<name>mod_log_config</name>
<description>$B%5!<%P$X$N%j%/%(%9%H$N%m%.%s%0(B</description>
<status>Base</status>
<sourcefile>mod_log_config.c</sourcefile>
<identifier>log_config_module</identifier>
<summary>
<p>
$B$3$N%b%8%e!<%k$O%/%i%$%"%s%H$N%j%/%(%9%H$r=@Fp$K%m%0<}=8$9$k5!G=$r(B
$BDs6!$7$^$9!#%m%0$O%+%9%?%^%$%:2DG=$J=q<0$G=q$+$l!"%U%!%$%k$KD>@\(B
$B=q$$$?$j!"30It%W%m%0%i%`$KEO$7$?$j$9$k$3$H$,$G$-$^$9!#8D!9$N%j%/%(%9%H$r(B
$BFCD'$K1~$8$F%m%0$K=q$$$?$j=q$+$J$+$C$?$j$G$-$k$h$&$K!">r7o$K$h$k(B
$B%m%0<}=8$bDs6!$5$l$F$$$^$9!#(B</p>
<p>$B$3$N%b%8%e!<%k$O;0$D$N%G%#%l%/%F%#%VDs6!$7$^$9(B:
$B%m%0%U%!%$%k$r:n@.$9$k$?$a$N(B <directive module="mod_log_config"
>TransferLog</directive>,
$B?7$7$$=q<0$r(B $BDj5A$9$k(B <directive module="mod_log_config">LogFormat</directive>,
$B%m%0%U%!%$%k$H(B $B=q<0$r0lEY$KDj5A$9$k(B <directive module="mod_log_config"
>CustomLog</directive> $B$G$9!#(B
$B3F%j%/%(%9%H$,J#?t2s%m%0<}=8$5$l$k$h$&$K$9$k$?$a$K(B
<directive>TransferLog</directive> $B%G%#%l%/%F%#%V$H(B
<directive>CustomLog</directive>
$B%G%#%l%/%F%#%V$OJ#?t2s;HMQ$9$k$3$H$,$G$-$^$9!#(B</p>
</summary>
<seealso><a href="/logs.html">Apache $B%m%0%U%!%$%k(B</a></seealso>
<section id="formats"><title>$B%+%9%?%`%m%0=q<0(B</title>
<p><directive module="mod_log_config">LogFormat</directive> $B%G%#%l%/%F%#%V$H(B
<directive module="mod_log_config">CustomLog</directive>
$B%G%#%l%/%F%#%V$N=q<0$r;XDj$9$k0z?t$OJ8;zNs$G$9!#$3$NJ8;zNs$r;H$C$F$=$l$>$l$N(B
$B%j%/%(%9%H$,%m%0%U%!%$%k$K%m%0<}=8$5$l$^$9!#$=$NJ8;zNs$K$O(B
$B%m%0%U%!%$%k$K$=$N$^$^(B
$B=q$+$l$kJ8;zNs$d!"$=$l$>$l2~9T$H%?%V$r8=$9(B C $B8@8l(B
$B7A<0$N@)8fJ8;z(B "\n" $B$H(B "\t"
$B$H$r4^$a$k$3$H$,$G$-$^$9!#$=$N$^$^=PNO$5$;$?$$0zMQId$H%P%C%/%9%i%C%7%e$O(B
$B%P%C%/%9%i%C%7%e$G%(%9%1!<%W$9$kI,MW$,$"$j$^$9!#(B</p>
<p>$B%j%/%(%9%H$NFCD'$=$N$b$N$O(B "<code>%</code>"
$B%G%#%l%/%F%#%V$r=q<0$NJ8;zNs$K=q$/$3$H$G(B
$B%m%0<}=8$5$l$^$9!#(B"%"
$B%G%#%l%/%F%#%V$O%m%0%U%!%$%kCf$G$O0J2<$N$h$&$J(B
$BCM$GCV49$5$l$^$9(B:</p>
<table border="1" style="zebra">
<columnspec><column width=".2"/><column width=".8"/></columnspec>
<tr><th>$B%U%)!<%^%C%HJ8;zNs(B</th>
<th>$B@bL@(B</th></tr>
<tr><td><code>%%</code></td>
<td>$B%Q!<%;%s%H5-9f(B</td></tr>
<tr><td><code>%...a</code></td>
<td>$B%j%b!<%H(B IP $B%"%I%l%9(B</td></tr>
<tr><td><code>%...A</code></td>
<td>$B%m!<%+%k(B IP $B%"%I%l%9(B</td></tr>
<tr><td><code>%...B</code></td>
<td>$B%l%9%]%s%9$N%P%$%H?t!#(BHTTP $B%X%C%@$O=|$/!#(B</td></tr>
<tr><td><code>%...b</code></td>
<td>$B%l%9%]%s%9$N%P%$%H?t!#(BHTTP $B%X%C%@$O=|$/!#(BCLF $B=q<0!#(B
<em>$B$9$J$o$A(B</em>$B!"(B1 $B%P%$%H$bAw$i$l$J$+$C$?$H$-$O(B 0 $B$G$O$J$/!"(B
'<code>-</code>' $B$K$J$k(B</td></tr>
<tr><td><code>%...{<var>Foobar</var>}C</code></td>
<td>$B%5!<%P$KAw$i$l$?%j%/%(%9%HCf$N%/%C%-!<(B <var>Foobar</var> $B$NCM(B</td></tr>
<tr><td><code>%...D</code></td>
<td>$B%j%/%(%9%H$r=hM}$9$k$N$K$+$+$C$?;~4V!"%_%jICC10L(B</td></tr>
<tr><td><code>%...{<var>FOOBAR</var>}e</code></td>
<td>$B4D6-JQ?t(B <var>FOOBAR</var> $B$NFbMF(B</td></tr>
<tr><td><code>%...f</code></td>
<td>$B%U%!%$%kL>(B</td></tr>
<tr><td><code>%...h</code></td>
<td>$B%j%b!<%H%[%9%H(B</td></tr>
<tr><td><code>%...H</code></td>
<td>$B%j%/%(%9%H%W%m%H%3%k(B</td></tr>
<tr><td><code>%...{<var>Foobar</var>}i</code></td>
<td>$B%5!<%P$KAw$i$l$?%j%/%(%9%H$N(B <code><var>Foobar</var>:</code>
$B%X%C%@$NFbMF(B</td></tr>
<tr><td><code>%...l</code></td>
<td>(identd $B$+$i$b$7Ds6!$5$l$F$$$l$P(B) $B%j%b!<%H%m%0L>!#(B
$B$3$l$O(B <module>mod_ident</module> $B$,%5!<%P$KB8:_$7$F!"(B
<directive module="mod_ident">IdentityCheck</directive>
$B%G%#%l%/%F%#%V$,(B <code>On</code> $B$K@_Dj$5$l$F$$$J$$8B$j!"(B
<code>-</code> $B$K$J$j$^$9!#(B</td></tr>
<tr><td><code>%...m</code></td>
<td>$B%j%/%(%9%H%a%=%C%I(B</td></tr>
<tr><td><code>%...{<var>Foobar</var>}n</code></td>
<td>$BB>$N%b%8%e!<%k$+$i$N%a%b(B <var>Foobar</var> $B$NFbMF(B</td></tr>
<tr><td><code>%...{<var>Foobar</var>}o</code></td>
<td>$B1~Ez$N(B <code><var>Foobar</var>:</code> $B%X%C%@$NFbMF(B</td></tr>
<tr><td><code>%...p</code></td>
<td>$B%j%/%(%9%H$r07$C$F$$$k%5!<%P$N@5<0$J%]!<%H(B</td></tr>
<tr><td><code>%...P</code></td>
<td>$B%j%/%(%9%H$r07$C$?;R%W%m%;%9$N%W%m%;%9(B ID</td></tr>
<tr><td><code>%...{<var>format</var>}P</code></td>
<td>$B%j%/%(%9%H$r07$C$?%o!<%+!<$N%W%m%;%9(B ID $B$+%9%l%C%I(B ID$B!#(B
<var>format</var> $B$H$7$FM-8z$JCM$O(B <code>pid</code> $B$H(B <code>tid</code>
</td></tr>
<tr><td><code>%...q</code></td>
<td>$BLd$$9g$;J8;zNs(B ($BB8:_$9$k>l9g$OA0$K(B <code>?</code> $B$,DI2C$5$l$k!#(B
$B$=$&$G$J$$>l9g$O6uJ8;zNs(B)</td></tr>
<tr><td><code>%...r</code></td>
<td>$B%j%/%(%9%H$N:G=i$N9T(B</td></tr>
<tr><td><code>%...s</code></td>
<td>$B%9%F!<%?%9!#FbIt$G%j%@%$%l%/%H$5$l$?%j%/%(%9%H$O!"85!9$N(B
$B%j%/%(%9%H$N%9%F!<%?%9(B --- $B:G8e$N%9%F!<%?%9$O(B <code>%...&gt;s</code>
</td></tr>
<tr><td><code>%...t</code></td>
<td>$B%j%/%(%9%H$r<uIU$1$?;~9o!#(B
CLF $B$N;~9o$N=q<0(B ($BI8=`$N1Q8l$N=q<0(B)</td></tr>
<tr><td><code>%...{<var>format</var>}t</code></td>
<td><var>format</var> $B$GM?$($i$l$?=q<0$K$h$k;~9o!#(Bformat $B$O(B
<code>strftime (3)</code> $B$N(B
$B=q<0$G$"$kI,MW$,$"$k!#(B($BCO0h2=$5$l$F$$$k2DG=@-$,$"$k(B)</td></tr>
<tr><td><code>%...T</code></td>
<td>$B%j%/%(%9%H$r07$&$N$K$+$+$C$?;~4V!"ICC10L(B</td></tr>
<tr><td><code>%...u</code></td>
<td>$B%j%b!<%H%f!<%6(B ($BG'>Z$K$h$k$b$N!#%9%F!<%?%9(B (<code>%s</code>) $B$,(B
401 $B$N$H$-$O0UL#$,$J$$$b$N$G$"$k2DG=@-$,$"$k(B)
</td></tr>
<tr><td><code>%...U</code></td>
<td>$B%j%/%(%9%H$5$l$?(B URL $B%Q%9!#%/%(%jJ8;zNs$O4^$^$J$$(B</td></tr>
<tr><td><code>%...v</code></td>
<td>$B%j%/%(%9%H$r07$C$F$$$k%5!<%P$N@5<0$J(B <directive
module="core">ServerName</directive></td></tr>
<tr><td><code>%...V</code></td>
<td><directive module="core"
>UseCanonicalName</directive> $B$N@_Dj$K$h$k%5!<%PL>(B</td></tr>
<tr><td><code>%...X</code></td>
<td>$B1~Ez$,40N;$7$?$H$-$N@\B3%9%F!<%?%9(B:
<table>
<columnspec><column width=".2"/><column width=".6"/></columnspec>
<tr><td><code>X</code> =</td>
<td>$B1~Ez$,40N;$9$kA0$K@\B3$,0[>o=*N;(B</td></tr>
<tr><td><code>+</code> =</td>
<td>$B1~Ez$,Aw$i$l$?8e$K@\B3$r;}B3$9$k$3$H$,2DG=(B</td></tr>
<tr><td><code>-</code> = </td>
<td>$B1~Ez$,Aw$i$l$?8e$K@\B3$,@Z$i$l$k(B</td></tr>
</table>
<p>($B$3$N%G%#%l%/%F%#%V$O(B Apache
1.3 $B$N8e4|$N%P!<%8%g%s$G$O(B <code>%...c</code> $B$K3d$jEv$F$i$l$F(B
$B$$$^$7$?$,!"$3$l$ONr;KE*$K(B ssl $B$,;HMQ$7$F$$$k(B
<code>%...{<var>var</var>}c</code>
$B9=J8$H>WFM$7$F$$$^$7$?!#(B)</p></td></tr>
<tr><td><code>%...I</code></td>
<td>$B%j%/%(%9%H$H%X%C%@$r4^$`!"<u$1<h$C$?%P%$%H?t!#(B
0 $B$K$O$J$i$J$$!#(B
$B$3$l$r;HMQ$9$k$?$a$K$O(B <module>mod_logio</module> $B$,I,MW(B</td></tr>
<tr><td><code>%...O</code></td>
<td>$B%X%C%@$r4^$`!"Aw?.$7$?%P%$%H?t!#(B0 $B$K$O$J$i$J$$!#(B
$B$3$l$r;HMQ$9$k$?$a$K$O(B <module>mod_logio</module> $B$,I,MW(B</td></tr>
</table>
<p><var>"..."</var> $B$O2?$b$J$$$+(B (<em>$BNc$($P(B</em>$B!"(B
<code>"%h %u %r %s %b"</code> $B$N$h$&$K(B)$B!"(B
$B$=$N9`L\$r4^$a$k$+$I$&$+$N>r7o(B ($B$b$7>r7o$K9g$o$J$+$C$?$H$-$O(B
$B$=$N9`L\$O(B "-" $B$K$J$j$^$9(B) $B$K$9$k$3$H$,$G$-$^$9!#>r7o$N7A<0$O(B
HTTP $B%9%F!<%?%9%3!<%I$N%j%9%H$G!"A0$K(B "!" $B$rIU$1$k$3$H$b$G$-$^$9!#(B
$B$G$9$+$i!"(B"%400,501{User-agent}i" $B$O(B 400 $B%(%i!<$H(B 501 $B%(%i!<(B
(Bad Request $B$H(B Not Implemented) $B$N$H$-$N$_(B <code>User-agent:</code>
$B$r%m%0<}=8$7$^$9!#(B
"%!200,304,302{Referer}i" $B$OIaDL$N%9%F!<%?%9$r(B<em>$BJV$5$J$+$C$?(B</em>
$B$9$Y$F$N%j%/%(%9%H$G(B <code>Referer:</code> $B$r%m%0<}=8$7$^$9!#(B</p>
<p>$B=$>~;R(B "&lt;" $B$H(B "&gt;" $B$OFbIt%j%@%$%l%/%H$5$l$?%j%/%(%9%H$N%m%0$K(B
$B85$N%j%/%(%9%H$+:G=*E*$J%j%/%(%9%H$N$I$A$i$r;HMQ$9$k$+$r(B
$B;XDj$9$k$?$a$K;H$$$^$9!#%G%U%)%k%H$G$O!"(B<code>%</code> $B%G%#%l%/%F%#%V$N(B
<code>%s, %U, %T, %D, %r</code> $B$O85$N%j%/%(%9%H$r!"B>$O:G=*E*$J%j%/%(%9%H$r(B
$B;HMQ$7$^$9!#Nc$($P!"%j%/%(%9%H$N:G=*%9%F!<%?%9$r5-O?$9$k$K$O(B
<code>%&gt;s</code> $B$r!"FbItE*$KG'>Z$5$l$F$$$J$$%j%=!<%9$X%j%@%$%l%/%H$5$l$?(B
$B%j%/%(%9%H$G85$N%j%/%(%9%H$GG'>Z$5$l$?%f!<%6$r5-O?$9$k$?$a$K$O(B
<code>%&lt;u</code> $B$r;H$&$3$H$,$G$-$^$9!#(B</p>
<p>httpd 2.0 $B$N(B 1.3.25 $B$h$jA0$N%P!<%8%g%s$G$O!"(B
<code>%...r</code>, <code>%...i</code>,
<code>%...o</code> $B$NJ8;zNs$O(B
$B%(%9%1!<%W$5$l$F$$$J$+$C$?$3$H$K(B
$BCm0U$7$F$/$@$5$$!#$3$l$O<g$K(B Common Log Format $B$+$i$NMW5a$K$h$k$b$N$G$9!#(B
$B$3$l$O!"%/%i%$%"%s%H$,%m%0$K@)8fJ8;z$rA^F~$9$k$3$H$,$G$-$k$H$$$&$3$H$G!"(B
$B@8$N%m%0%U%!%$%k$r07$&$H$-$K$OHs>o$KCm0U$,I,MW$G$7$?!#(B</p>
<p>$B%;%-%e%j%F%#>e$NM}M3$K$h$j(B 2.0.46 $B$h$j0u;zIT2DG=$JJ8;z$H(B
$BB>$NFCJL$JJ8;z$O!"$[$H$s$I(B <code>\x<var>hh</var></code> $B$H$$$&(B
$BJ8;zNs$G%(%9%1!<%W$5$l$k$h$&$K$J$j$^$7$?!#$3$3$G!"(B<var>hh</var> $B$O(B
$B$=$N$^$^$N%P%$%H$NCM$N(B 16 $B?J$G$NCM$G$9!#$3$N5,B'$NNc30$K$O!"(B
$B%P%C%/%9%i%C%7%e$r;H$C$F%(%9%1!<%W$5$l$k(B <code>"</code> $B$H(B <code>\</code> $B$H!"(B
C $B7A<0$NI=5-K!$,;H$o$l$k6uGrJ8;z(B (<code>\n</code>, <code>\t</code> $B$J$I(B) $B$,(B
$B$"$j$^$9!#(B</p>
<p>httpd 2.0 $B$G$O(B 1.3 $B$H$O0[$J$j!"(B<code>%b</code> $B$H(B <code>%B</code>
$B%U%)!<%^%C%HJ8;zNs$O%/%i%$%"%s%H$KAw?.$5$l$?%P%$%H?t$=$N$b$N$G$O$J$/!"(B
HTTP $B%l%9%]%s%9$N%P%$%H?t$G$9(B ($B$3$l$i$O0[$J$k$b$N$G!"$?$H$($P!"(B
$B%3%M%/%7%g%s$,ESCf$GGK4~$5$l$?>l9g$d!"(BSSL $B;HMQ;~$K0lCW$7$^$;$s(B) $B!#(B
<module>mod_logio</module> $B$GDs6!$5$l$F$$$k(B <code>%O</code>
$B%U%)!<%^%C%HJ8;zNs$G!"%M%C%H%o!<%/7PM3$G<B:]$KE>Aw$5$l$?%P%$%H?t$r(B
$B5-O?$G$-$^$9!#(B</p>
<p>$B$h$/;H$o$l$k%U%)!<%^%C%HJ8;zNs$O(B:</p>
<dl>
<dt>Common Log Format (CLF)</dt>
<dd><code>"%h %l %u %t \"%r\" %&gt;s %b"</code></dd>
<dt>$B%P!<%A%c%k%[%9%HIU$-(B Common Log Format</dt>
<dd><code>"%v %h %l %u %t \"%r\" %&gt;s %b"</code></dd>
<dt>NCSA extended/combined $B%m%0=q<0(B</dt>
<dd><code>"%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\"
\"%{User-agent}i\""</code></dd>
<dt>Referer $B%m%0=q<0(B</dt>
<dd><code>"%{Referer}i -&gt; %U"</code></dd>
<dt>Agent ($B%V%i%&%6(B) $B%m%0=q<0(B</dt>
<dd><code>"%{User-agent}i"</code></dd>
</dl>
<p><code>%v</code> $B$H(B <code>%p</code> $B$K$O$=$l$>$l!"(B
$B%j%/%(%9%H$r07$C$F$$$k%5!<%P$N@55,2=$5$l$?(B
<directive module="core">ServerName</directive> $B$H(B <directive
module="mpm_common">Listen</directive> $B$,;H$o$l$k$H$$$&$3$H$KCm0U$7$F$/$@$5$$!#(B
$B$3$l$O(B <directive module="core">UseCanonicalName</directive> $B$N(B
$B@_Dj$K4X$o$i$:!">o$K$=$&$J$j$^$9!#$=$&$7$J$$$H$I$N(B
$B%[%9%H$,<B:]$K%j%/%(%9%H$r07$C$?$N$+$rCN$k$?$a$K!"(B
$B%m%02r@O%W%m%0%i%`$,%P!<%A%c%k%[%9%H$N%^%C%A%s%0$r$H$k%"%k%4%j%:%`A4BN$r(B
$B:F<BAu$7$J$1$l$P$J$i$J$/$J$k$+$i$G$9!#(B</p>
</section>
<section id="security"><title>$B%;%-%e%j%F%#$K4X$7$F(B</title>
<p>$B%m%0%U%!%$%k$,J]B8$5$l$F$$$k%G%#%l%/%H%j$,%5!<%P$r5/F0$7$?0J30$N%f!<%6$G(B
$B=q$-9~$_2DG=$J$H$-$K%;%-%e%j%F%#$NLdBj$,H/@8$9$kM}M3$N>\:Y$O(B<a
href="/misc/security_tips.html#serverroot">$B%;%-%e%j%F%#$N$3$D(B</a>
$B$r;2>H$7$F$/$@$5$$!#(B</p>
</section>
<directivesynopsis>
<name>BufferedLogs</name>
<description>$B%G%#%9%/$K=q$-=P$9A0$K%a%b%j$K%m%0%(%s%H%j$r%P%C%U%!$9$k(B</description>
<syntax>BufferedLogs On|Off</syntax>
<default>BufferedLogs Off</default>
<contextlist><context>server config</context></contextlist>
<status>Experimental</status>
<compatibility>2.0.41 $B0J9_(B</compatibility>
<usage>
<p><directive>BufferedLogs</directive> $B%G%#%l%/%F%#%V$r;H$&$H(B
<module>mod_log_config</module> $B$N5sF0$,JQ2=$7$F!"(B
$BJ#?t$N%m%0$r=q$-=P$9:]$K!"$=$l$>$l$N%j%/%(%9%H=hM}8eKh$K(B
$B=q$-=P$9$N$G$O$J$/!"$$$C$?$s%a%b%j$KC_$($F$+$i!"(B
$B$^$H$a$F%G%#%9%/$K=q$-=P$9$h$&$K$J$j$^$9!#(B
$B$3$N7k2L%G%#%9%/%"%/%;%9$,$h$j8zN(E*$K$J$j!"(B
$B9b$$%Q%U%)!<%^%s%9$NF@$i$l$k%7%9%F%`$b$"$k$G$7$g$&!#(B
$B$3$N%G%#%l%/%F%#%V$O%5!<%PA4BN$G0lEY$@$1@_Dj$G$-$^$9(B;
$B%P!<%A%c%k%[%9%H$4$H$K@_Dj$9$k$3$H$O$G$-$^$;$s!#(B</p>
<note>$B$3$N%G%#%l%/%F%#%V$O<B83E*$J$b$N$G$9$N$G!"(B
$B;HMQ$9$k:]$OCm0U$7$F$/$@$5$$!#(B</note>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>CookieLog</name>
<description>$B%/%C%-%s%0$N%m%.%s%0$N$?$a$N%U%!%$%kL>$r@_Dj$9$k(B</description>
<syntax>CookieLog <var>filename</var></syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<compatibility>$B$3$N%G%#%l%/%F%#%V$OHs?d>)(B</compatibility>
<usage>
<p><directive>CookieLog</directive>
$B%G%#%l%/%F%#%V$O%/%C%-!<$N%m%.%s%0$N$?$a$N%U%!%$%kL>$r(B
$B@_Dj$7$^$9!#(Bfilename $B$O(B <directive
module="core">ServerRoot</directive>
$B$+$i$NAjBP%Q%9$G$9!#$3$N%G%#%l%/%F%#%V$O(B <code
>mod_cookies</code> $B$H$N8_49@-$N$?$a$@$1$K(B
$BB8:_$7!";HMQ$O?d>)$5$l$F$$$^$;$s!#(B</p>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>CustomLog</name>
<description>$B%m%0%U%!%$%k$NL>A0$H=q<0$r@_Dj$9$k(B</description>
<syntax>CustomLog <var>file</var>|<var>pipe</var>
<var>format</var>|<var>nickname</var>
[env=[!]<var>environment-variable</var>]</syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p><directive>CustomLog</directive> $B%G%#%l%/%F%#%V$O%5!<%P$X$N%j%/%(%9%H$r(B
$B%m%0<}=8$9$k$?$a$K;H$o$l$^$9!#%m%0$N=q<0$,;XDj$5$l!"(B
$B4D6-JQ?t$r;H$C$F%m%.%s%0$,>r7o$K1~$8$F9T$J$o$l$k$h$&$K$9$k$3$H$b$G$-$^$9!#(B</p>
<p>$B%m%0$,=q$+$l$k>l=j$r;XDj$9$k:G=i$N0z?t$O0J2<$NFs$D$N7A<0$NCM$r(B
$B$H$k$3$H$,$G$-$^$9(B:</p>
<dl>
<dt><var>file</var></dt>
<dd><directive module="core">ServerRoot</directive>
$B$+$i$NAjBP%Q%9$GI=$5$l$k%U%!%$%kL>!#(B</dd>
<dt><var>pipe</var></dt>
<dd>$B%Q%$%WJ8;z(B "<code>|</code>" $B$H!"$=$N8e$KI8=`F~NO$+$i%m%0$N(B
$B>pJs$r<u$1$H$k%W%m%0%i%`$X$N%Q%9$,B3$$$?$b$N!#(B
<note type="warning"><title>$B%;%-%e%j%F%#(B</title>
<p>$B$b$7%W%m%0%i%`$,;HMQ$5$l$?>l9g!"(B
<program>httpd</program> $B$,5/F0$5$l$?%f!<%6$H$7$F<B9T$5$l$^$9!#$3$l$O%5!<%P$,(B
root $B$K$h$C$F5/F0$5$l$?>l9g$O(B root $B$K$J$j$^$9!#%W%m%0%i%`$,(B
$B0BA4$G$"$k$h$&$KN10U$7$F$/$@$5$$!#(B</p>
</note>
<note type="warning"><title>$BCm(B</title>
<p>Unix $B$G$J$$%W%i%C%H%U%)!<%`$G%U%!%$%k$N%Q%9$rF~NO$7$F$$$k$H$-$O!"(B
$B;HMQ$7$F$$$k%W%i%C%H%U%)!<%`$,%P%C%/%9%i%C%7%e$N;HMQ$r5v2D$7$F$$$?(B
$B$H$7$F!"DL>o$N%9%i%C%7%e$@$1$r;H$&$h$&$K5$$r$D$1$F$/$@$5$$!#(B
$B0lHLE*$K!"@_Dj%U%!%$%kCf$G$O>o$KIaDL$N%9%i%C%7%e$N$_$r;H$&$h$&$K$9$k(B
$BJ}$,NI$$$G$9!#(B</p>
</note></dd>
</dl>
<p>$BFs$D$a$N0z?t$O%m%0%U%!%$%k$K2?$,=q$+$l$k$+$r;XDj$7$^$9!#(B
$BA0$K$"$k(B <directive
module="mod_log_config">LogFormat</directive> $B%G%#%l%/%F%#%V$K$h$j(B
$BDj5A$5$l$?(B <var>nickname</var> $B$+!"(B<a href="#formats">$B%m%0$N=q<0(B</a>
$B$N$H$3$m$G@bL@$5$l$F$$$k!"L@<(E*$J(B <var>format</var> $BJ8;zNs$N(B
$B$I$A$i$+$r;XDj$9$k$3$H$,$G$-$^$9!#(B</p>
<p>$BNc$($P!"0J2<$NFs$D$N%G%#%l%/%F%#%V72$OA4$/F1$88z2L$r$b$?$i$7$^$9(B:</p>
<example>
# CustomLog with format nickname<br />
LogFormat "%h %l %u %t \"%r\" %&gt;s %b" common<br />
CustomLog logs/access_log common<br />
<br />
# CustomLog with explicit format string<br />
CustomLog logs/access_log "%h %l %u %t \"%r\" %&gt;s %b"
</example>
<p>$B;0$DL\$N0z?t$O>JN,2DG=$G!"%5!<%P$N4D6-$K$"$kJQ?t$,$"$k$+$J$$$+$K(B
$B1~$8$F%j%/%(%9%H$r%m%0<}=8$9$k$+$I$&$+$r@)8f$9$k$?$a$K;H$&$3$H$,$G$-$^$9!#(B
$B;XDj$5$l$?(B<a href="/env.html">$B4D6-JQ?t(B</a>$B$,%j%/%(%9%H$KBP$7$F(B
$B@_Dj$5$l$F$$$?>l9g(B ('<code>env=!<var>name</var></code>' $BJ8$,;H$o$l$?$H$-$O(B
$B@_Dj$5$l$F$$$J$$>l9g(B)$B!"%j%/%(%9%H$,%m%0<}=8$5$l$^$9!#(B</p>
<p>$B4D6-JQ?t$O(B <module>mod_setenvif</module> $B%b%8%e!<%k$H(B
<module>mod_rewrite</module> $B%b%8%e!<%k$NN>J}$b$7$/$O(B
$BJRJ}$rMQ$$$F%j%/%(%9%H$4$H$K@_Dj$9$k$3$H$,$G$-$^$9!#(B
$BNc$($P!"%5!<%P$K$"$k$9$Y$F$N(B GIF $B2hA|$X$N%j%/%(%9%H$rJL$N%m%0%U%!%$%k(B
$B$K$O5-O?$7$?$$$1$l$I!"%a%$%s%m%0$K$O5-O?$7$?$/$J$$!"$H$$$&$H$-$O(B
$B0J2<$N$b$N$r;H$&$3$H$,$G$-$^$9(B:</p>
<example>
SetEnvIf Request_URI \.gif$ gif-image<br />
CustomLog gif-requests.log common env=gif-image<br />
CustomLog nongif-requests.log common env=!gif-image
</example>
<p>$B8E$$(B RefererIgnore $B%G%#%l%/%F%#%V$HF1$85sF0$r$5$;$?$$>l9g$O!"(B
$B<!$N$h$&$K$7$^$9(B:</p>
<example>
SetEnvIf Referer example\.com localreferer<br />
CustomLog referer.log referer env=!localreferer
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>LogFormat</name>
<description>$B%m%0%U%!%$%k$G;HMQ$9$k=q<0$r@_Dj$9$k(B</description>
<syntax>LogFormat <var>format</var>|<var>nickname</var>
[<var>nickname</var>]</syntax>
<default>LogFormat "%h %l %u %t \"%r\" %>s %b"</default>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p>$B$3$N%G%#%l%/%F%#%V$O%"%/%;%9%m%0%U%!%$%k$N=q<0$r;XDj$7$^$9!#(B</p>
<p><directive>LogFormat</directive> $B%G%#%l%/%F%#%V$OFs$D$N7A<0$N$I$A$i$+$r(B
$B$H$k$3$H$,$G$-$^$9!#:G=i$N7A<0$G$O0l$D$N0z?t$N$_$,;XDj$5$l!"(B
$BB3$/(B <directive>TransferLog</directive>
$B$G;XDj$5$l$?%m%0$G;H$o$l$k%m%0$N=q<0$r@_Dj$7$^$9!#$3$NC1FH$N0z?t$G$O(B
$B>e$N(B<a href="#formats">$B%+%9%?%`%m%0=q<0(B</a>$B$G@bL@$5$l$F$$$k$h$&$K(B
<var>format</var> $B$rL@<(E*$K;XDj$9$k$3$H$,$G$-$^$9!#(B
$B$b$7$/$O!"2<$G@bL@$5$l$F$$$k$h$&$KA0$K(B <directive>LogFormat</directive>
$B%G%#%l%/%F%#%V$GDj5A$5$l$?%m%0$N=q<0$r(B <var>nickname</var>$B$r;H$C$F(B
$B;2>H$9$k$3$H$b$G$-$^$9!#(B</p>
<p><directive>LogFormat</directive> $B%G%#%l%/%F%#%V$NFs$D$a$N7A<0$O(B
<var>format</var> $B$K(B <var>nickname</var> $B$rM?$($^$9!#(B
$B%U%)!<%^%C%HJ8;zNsA4BN$r:F$S=q$/$+$o$j$K!"(B
$B$3$N(B <var>nickname</var> $B$rB3$-$N(B <directive
>LogFormat</directive> $B%G%#%l%/%F%#%V$d(B
<directive>CustomLog</directive> $B%G%#%l%/%F%#%V$G;H$&$3$H$,$G$-$^$9!#(B
Nickname $B$rDj5A$9$k(B <directive>LogFormat</directive> $B%G%#%l%/%F%#%V$O(B
<strong>$BB>$K$O2?$b$7$^$;$s(B</strong> -- $B$9$J$o$A!"%K%C%/%M!<%`$rDj5A(B
$B$9$k$@$1$G!"<B:]$K=q<0$rE,MQ$7$F%G%U%)%k%H$K$9$k$H$$$&$3$H$O9T$J$$$^$;$s!#(B
$B$G$9$+$i!"$3$l$OB3$/(B <directive module="mod_log_config">TransferLog</directive>
$B%G%#%l%/%F%#%V$K$O1F6A$rM?$($^$;$s!#(B
$B$5$i$K!"(B<directive>LogFormat</directive> $B%G%#%l%/%F%#%V$O4{B8$N(B nickname $B$r(B
$B;H$C$FJL$N(B nickname $B$rDj5A$9$k$3$H$O$G$-$^$;$s!#(BNickname $B$K$O(B
$B%Q!<%;%s%H5-9f(B (<code>%</code>) $B$,4^$^$l$F$$$F$O$$$1$J$$$3$H$K$bCm0U(B
$B$7$F$/$@$5$$!#(B</p>
<example><title>$BNc(B</title>
LogFormat "%v %h %l %u %t \"%r\" %&gt;s %b" vhost_common
</example>
</usage>
</directivesynopsis>
<directivesynopsis>
<name>TransferLog</name>
<description>$B%m%0%U%!%$%k$N0LCV$r;XDj(B</description>
<syntax>TransferLog <var>file</var>|<var>pipe</var></syntax>
<contextlist><context>server config</context><context>virtual host</context>
</contextlist>
<usage>
<p>$B$3$N%G%#%l%/%F%#%V$O!"%m%0=q<0$rD>@\;XDj$G$-$J$$$3$H$H!"(B
$B>r7oIU$-%m%.%s%0$,L5$$$3$H$r=|$/$H!"(B<directive module="mod_log_config"
>CustomLog</directive> $B$HA4$/F1$80z?t$H8z2L$,$"$j$^$9!#(B
$BD>@\%m%0=q<0$r;XDj$9$kBe$o$j$K!"%m%0$N=q<0$O$=$3$^$G$G0lHV:G8e$K;XDj$5$l$?(B
$B%K%C%/%M!<%`$rDj5A$7$J$$(B
<directive module="mod_log_config">LogFormat</directive> $B%G%#%l%/%F%#%V(B
$B$GDj5A$5$l$?$b$N$r;H$$$^$9!#(B
$B$b$7B>$N=q<0$,A4$/;XDj$5$l$F$$$J$$$H$-$O(B Common Log Format
$B$,;H$o$l$^$9!#(B</p>
<example><title>$BNc(B</title>
LogFormat "%h %l %u %t \"%r\" %&gt;s %b \"%{Referer}i\" \"%{User-agent}i\""<br />
TransferLog logs/access_log
</example>
</usage>
</directivesynopsis>
</modulesynopsis>