Mercurial > hg > nginx-site
view xml/ja/docs/debugging_log.xml @ 1009:135920b5c61d
Marked strings with entities in japanese translation as literal.
This allows to preserve information and produce correct output if the XML
parser expands entities on input. The markup is similar to english and
russian versions of the document.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 11 Nov 2013 11:54:16 +0400 |
parents | 4c6d2c614d2c |
children |
line wrap: on
line source
<!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> <article name="デバッギングログ" link="/ja/docs/debugging_log.html" lang="ja"> <section> <para> デバッギングログを有効にするには、nginx をデバッグオプションを付けて設定する必要があります: <programlisting> ./configure --with-debug ... </programlisting> 次に <literal>error_log</literal> の <literal>debug</literal> レベルをセットします: <programlisting> error_log /path/to/log debug; </programlisting> nginx の Windows バイナリバージョンでは常にデバッグログモードがサポートされてビルドされているので、<literal>debug</literal> レベルをセットするだけです。 </para> <para> 別のレベル、例えば <i>server</i> レベルでログを定義するとそのサーバでのデバッギングログが無効になりますので注意してください: <programlisting> error_log /path/to/log debug; http { server { error_log /path/to/log; ... </programlisting> このサーバログをコメントアウトするか <literal>debug</literal> フラグを追加してください: <programlisting> error_log /path/to/log debug; http { server { error_log /path/to/log debug; ... </programlisting> </para> <para> また、特定のアドレスだけデバッギングログを有効にすることもできます: <programlisting> error_log /path/to/log; events { debug_connection 192.168.1.1; debug_connection 192.168.10.0/24; } </programlisting> </para> </section> </article>