Mercurial > hg > nginx-site
diff xml/en/docs/ngx_core_module.xml @ 3090:27532d42102b
Documented the "rate" parameter of the "error_log" directive.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Sun, 16 Jun 2024 06:55:30 +0300 |
parents | eb5950986b11 |
children |
line wrap: on
line diff
--- a/xml/en/docs/ngx_core_module.xml +++ b/xml/en/docs/ngx_core_module.xml @@ -10,7 +10,7 @@ <module name="Core functionality" link="/en/docs/ngx_core_module.html" lang="en" - rev="28"> + rev="29"> <section id="example" name="Example Configuration"> @@ -209,7 +209,10 @@ and should not be set directly by the us <directive name="error_log"> -<syntax><value>file</value> [<value>level</value>]</syntax> +<syntax> + <value>file</value> + [<value>level</value>] + [<literal>rate</literal>=<value>rate</value>]</syntax> <default>logs/error.log error</default> <context>main</context> <context>http</context> @@ -258,7 +261,20 @@ For <literal>debug</literal> logging to be built with <literal>--with-debug</literal>, see “<link doc="debugging_log.xml"/>”. </note> +</para> +<para> +The <literal>rate</literal> parameter (1.27.2) specifies +the maximum allowed logging rate in messages per second (m/s) +for each worker process. +By default, <literal>rate=1000m/s</literal> is used. +Setting <value>rate</value> to 0 disables rate limiting. +Additionally, rate limiting is not used +if logging level is set to <literal>debug</literal> or +debugging log is enabled for the <link id="debug_connection">connection</link>. +</para> + +<para> <note> The directive can be specified on the <literal>stream</literal> level