annotate xml/ru/docs/debugging_log.xml @ 270:945d7299c26c

Spaces are now preserved here, so removed all the hacks.
author Ruslan Ermilov <ru@nginx.com>
date Thu, 22 Dec 2011 13:39:18 +0000
parents c99c8df86eb9
children 4c6d2c614d2c
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
214
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
1 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd">
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
2
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
3 <article name="Отладочный лог"
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
4 link="/ru/docs/debugging_log.html"
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
5 lang="ru">
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
6
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
7
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
8 <section>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
9
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
10 <para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
11 Чтобы включить отладочный лог, при сборке следует сконфигурировать nginx с
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
12 поддержкой отладки:
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
13
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
14 <programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
15 ./configure --with-debug ...
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
16 </programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
17
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
18 Затем нужно задать уровень <value>debug</value> с помощью
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
19 директивы <link doc="ngx_core_module.xml" id="error_log"/>:
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
20
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
21 <programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
22 error_log /path/to/log debug;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
23 </programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
24
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
25 Бинарная версия nginx для Windows всегда собирается с поддержкой отладочного
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
26 лога, поэтому понадобится лишь задать уровень <value>debug</value>.
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
27 </para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
28
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
29 <para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
30 Обратите внимание, что переопределение лога без одновременного указания
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
31 уровня <value>debug</value> отключит отладочный лог.
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
32 В примере ниже, переопределение лога на уровне
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
33 <link doc="http/ngx_http_core_module.xml" id="server"/>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
34 отключает отладочный лог для этого сервера:
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
35 <programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
36 error_log /path/to/log debug;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
37
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
38 http {
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
39 server {
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
40 error_log /path/to/log;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
41 ...
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
42 </programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
43 Чтобы избежать этого, следует либо закомментировать строку, переопределяющую
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
44 лог, либо добавить определение уровня <value>debug</value>:
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
45 <programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
46 error_log /path/to/log debug;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
47
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
48 http {
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
49 server {
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
50 error_log /path/to/log debug;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
51 ...
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
52 </programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
53 </para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
54
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
55 <para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
56 Можно включить отладочный лог только для определённых адресов:
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
57
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
58 <programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
59 error_log /path/to/log;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
60
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
61 events {
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
62 debug_connection 192.168.1.1;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
63 debug_connection 192.168.10.0/24;
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
64 }
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
65 </programlisting>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
66 </para>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
67
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
68 </section>
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
69
c99c8df86eb9 Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff changeset
70 </article>