Mercurial > hg > nginx-site
annotate xml/ru/docs/debugging_log.xml @ 1410:f5dcc23b214f
Deleted info about hash and ip_hash from the down parameter.
author | Yaroslav Zhuravlev <yar@nginx.com> |
---|---|
date | Mon, 09 Feb 2015 21:46:50 +0300 |
parents | 764fbac1b8b4 |
children | d3390895fe6e |
rev | line source |
---|---|
580
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
516
diff
changeset
|
1 <!-- |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
516
diff
changeset
|
2 Copyright (C) Igor Sysoev |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
516
diff
changeset
|
3 Copyright (C) Nginx, Inc. |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
516
diff
changeset
|
4 --> |
be54c443235a
Added copyright markers to documentation sources.
Ruslan Ermilov <ru@nginx.com>
parents:
516
diff
changeset
|
5 |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
6 <!DOCTYPE article SYSTEM "../../../dtd/article.dtd"> |
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 <article name="Отладочный лог" |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
9 link="/ru/docs/debugging_log.html" |
589 | 10 lang="ru" |
11 rev="1"> | |
214
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 <section> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
15 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
16 <para> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
17 Чтобы включить отладочный лог, при сборке следует сконфигурировать nginx с |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
18 поддержкой отладки: |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
19 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
20 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
21 ./configure --with-debug ... |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
22 </programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
23 |
271 | 24 Затем нужно задать уровень <literal>debug</literal> с помощью |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
25 директивы <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
|
26 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
27 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
28 error_log /path/to/log debug; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
29 </programlisting> |
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 Бинарная версия nginx для Windows всегда собирается с поддержкой отладочного |
271 | 32 лога, поэтому понадобится лишь задать уровень <literal>debug</literal>. |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
33 </para> |
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 <para> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
36 Обратите внимание, что переопределение лога без одновременного указания |
271 | 37 уровня <literal>debug</literal> отключит отладочный лог. |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
38 В примере ниже, переопределение лога на уровне |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
39 <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
|
40 отключает отладочный лог для этого сервера: |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
41 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
42 error_log /path/to/log debug; |
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 http { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
45 server { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
46 error_log /path/to/log; |
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 </programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
49 Чтобы избежать этого, следует либо закомментировать строку, переопределяющую |
271 | 50 лог, либо добавить определение уровня <literal>debug</literal>: |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
51 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
52 error_log /path/to/log debug; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
53 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
54 http { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
55 server { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
56 error_log /path/to/log debug; |
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 </para> |
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 <para> |
516
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
62 Можно включить отладочный лог только для |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
63 <link doc="ngx_core_module.xml" id="debug_connection">определённых |
8e1356bd281a
Documented the "debug_connection" directive.
Ruslan Ermilov <ru@nginx.com>
parents:
271
diff
changeset
|
64 клиентских адресов</link>: |
214
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
65 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
66 <programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
67 error_log /path/to/log; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
68 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
69 events { |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
70 debug_connection 192.168.1.1; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
71 debug_connection 192.168.10.0/24; |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
72 } |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
73 </programlisting> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
74 </para> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
75 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
76 </section> |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
77 |
c99c8df86eb9
Translated the "Debugging Log" article into Russian.
Ruslan Ermilov <ru@nginx.com>
parents:
diff
changeset
|
78 </article> |