Mercurial > hg > nginx-site
diff xml/en/docs/ngx_core_module.xml @ 1285:4e89518a5999
Moved syslog configuration details into the separate documents.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Mon, 08 Sep 2014 17:21:16 +0400 |
parents | aab8a1667171 |
children | 2333e08e277d |
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="10"> + rev="11"> <section id="example" name="Example Configuration"> @@ -171,7 +171,7 @@ The first parameter defines a file that If filename is not absolute, it is prefixed with the prefix path. --> The special value <literal>stderr</literal> selects the standard error file. -Logging to syslog can be configured by specifying +Logging to <link doc="syslog.xml">syslog</link> can be configured by specifying the “<literal>syslog:</literal>” prefix. </para> @@ -192,69 +192,6 @@ see “<link doc="debugging_log.xml"/>”. </note> </para> -<para> -The following parameters configure logging to syslog: -<list type="tag"> - -<tag-name><literal>server=</literal><value>address</value></tag-name> -<tag-desc> -Defines an address of a syslog server. -An address can be specified as a domain name or IP address, -and an optional port, or as a UNIX-domain socket path -specified after the “<literal>unix:</literal>” prefix. -If port is not specified, the port 514 is used. -If a domain name resolves to several IP addresses, the first resolved -address is used. -</tag-desc> - -<tag-name><literal>facility=</literal><value>string</value></tag-name> -<tag-desc> -Sets facility of syslog messages, as defined in -<link url="http://tools.ietf.org/html/rfc3164#section-4.1.1">RFC 3164</link>. -Facility can be one of “<literal>kern</literal>”, “<literal>user</literal>”, -“<literal>mail</literal>”, “<literal>daemon</literal>”, -“<literal>auth</literal>”, “<literal>intern</literal>”, -“<literal>lpr</literal>”, “<literal>news</literal>”, “<literal>uucp</literal>”, -“<literal>clock</literal>”, “<literal>authpriv</literal>”, -“<literal>ftp</literal>”, “<literal>ntp</literal>”, “<literal>audit</literal>”, -“<literal>alert</literal>”, “<literal>cron</literal>”, -“<literal>local0</literal>”..“<literal>local7</literal>”. -Default is “<literal>local7</literal>”. -</tag-desc> - -<tag-name><literal>tag=</literal><value>string</value></tag-name> -<tag-desc> -Sets tag of syslog messages. -Default is “<literal>nginx</literal>”. -</tag-desc> - -<!-- -<tag-name><literal>bare=</literal><literal>on</literal> | -<literal>off</literal></tag-name> -<tag-desc> -If enabled, messages are sent without syslog headers. -Default is <literal>off</literal>. -</tag-desc> ---> - -</list> -Example syslog configuration: -<example> -error_log syslog:server=192.168.1.1 debug; -error_log syslog:server=unix:/var/log/nginx.sock; -error_log syslog:server=[2001:db8::1]:12345,facility=local7,tag=nginx error; -</example> -</para> - -<para> -<note> -Logging to syslog is available since version 1.7.1. -As part of our -<commercial_version>commercial subscription</commercial_version> -logging to syslog is available since version 1.5.3. -</note> -</para> - </directive>