comparison xml/ru/docs/http/ngx_http_log_module.xml @ 1694:080b36ad8d76

Reduced syntax clutter in the access_log directive. Only two syntax variants were preserved: - one with a generic syntax, which shows all possible parameters (and also clearly demonstrates that format must be specified if any additional parameters are used); - one with "off", to emphasize it.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 04 May 2016 17:35:30 +0300
parents 4e89518a5999
children 33f742032155
comparison
equal deleted inserted replaced
1693:c841e77fcc1d 1694:080b36ad8d76
8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd"> 8 <!DOCTYPE module SYSTEM "../../../../dtd/module.dtd">
9 9
10 <module name="Модуль ngx_http_log_module" 10 <module name="Модуль ngx_http_log_module"
11 link="/ru/docs/http/ngx_http_log_module.html" 11 link="/ru/docs/http/ngx_http_log_module.html"
12 lang="ru" 12 lang="ru"
13 rev="14"> 13 rev="15">
14 14
15 <section id="summary"> 15 <section id="summary">
16 16
17 <para> 17 <para>
18 Модуль <literal>ngx_http_log_module</literal> записывает логи запросов 18 Модуль <literal>ngx_http_log_module</literal> записывает логи запросов
49 49
50 <directive name="access_log"> 50 <directive name="access_log">
51 <syntax> 51 <syntax>
52 <value>путь</value> 52 <value>путь</value>
53 [<value>формат</value> 53 [<value>формат</value>
54 [<literal>buffer</literal>=<value>размер</value>
55 [<literal>flush</literal>=<value>время</value>]]
56 [<literal>if</literal>=<value>условие</value>]]</syntax>
57 <syntax>
58 <value>путь</value>
59 <value>формат</value>
60 <literal>gzip[=<value>степень</value>]</literal>
61 [<literal>buffer</literal>=<value>размер</value>] 54 [<literal>buffer</literal>=<value>размер</value>]
55 [<literal>gzip[=<value>степень</value>]</literal>]
62 [<literal>flush</literal>=<value>время</value>] 56 [<literal>flush</literal>=<value>время</value>]
63 [<literal>if</literal>=<value>условие</value>]</syntax>
64 <syntax>
65 <literal>syslog:</literal><literal>server</literal>=<value>адрес</value>[,<value>параметр</value>=<value>значение</value>]
66 [<value>формат</value>
67 [<literal>if</literal>=<value>условие</value>]]</syntax> 57 [<literal>if</literal>=<value>условие</value>]]</syntax>
68 <syntax><literal>off</literal></syntax> 58 <syntax><literal>off</literal></syntax>
69 <default>logs/access.log combined</default> 59 <default>logs/access.log combined</default>
70 <context>http</context> 60 <context>http</context>
71 <context>server</context> 61 <context>server</context>