Mercurial > hg > nginx-site
annotate xml/ru/docs/debugging_log.xml @ 516:8e1356bd281a
Documented the "debug_connection" directive.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 14 May 2012 11:29:39 +0000 |
parents | 4c6d2c614d2c |
children | be54c443235a |
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 |
271 | 18 Затем нужно задать уровень <literal>debug</literal> с помощью |
214
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 всегда собирается с поддержкой отладочного |
271 | 26 лога, поэтому понадобится лишь задать уровень <literal>debug</literal>. |
214
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 Обратите внимание, что переопределение лога без одновременного указания |
271 | 31 уровня <literal>debug</literal> отключит отладочный лог. |
214
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 Чтобы избежать этого, следует либо закомментировать строку, переопределяющую |
271 | 44 лог, либо добавить определение уровня <literal>debug</literal>: |
214
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> |
516
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
56 Можно включить отладочный лог только для |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
57 <link doc="ngx_core_module.xml" id="debug_connection">определённых |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
58 клиентских адресов</link>: |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
59 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
60 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
61 error_log /path/to/log; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
62 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
63 events { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
64 debug_connection 192.168.1.1; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 debug_connection 192.168.10.0/24; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 } |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 </programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 </para> |
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 </section> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 </article> |