<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nginx.git/src/core/ngx_syslog.h, branch release-1.30.0</title>
<subtitle>nginx</subtitle>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/'/>
<entry>
<title>Syslog: introduced error log handler.</title>
<updated>2023-03-10T04:43:50+00:00</updated>
<author>
<name>Maxim Dounin</name>
<email>mdounin@mdounin.ru</email>
</author>
<published>2023-03-10T04:43:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=11ed95bb53210c322c16bb0897f0cb3b5726ed57'/>
<id>11ed95bb53210c322c16bb0897f0cb3b5726ed57</id>
<content type='text'>
This ensures that errors which happen during logging to syslog are logged
with proper context, such as "while logging to syslog" and the server name.

Prodded by Safar Safarly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This ensures that errors which happen during logging to syslog are logged
with proper context, such as "while logging to syslog" and the server name.

Prodded by Safar Safarly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Syslog: removed usage of ngx_cycle-&gt;log and ngx_cycle-&gt;hostname.</title>
<updated>2023-03-10T04:43:40+00:00</updated>
<author>
<name>Maxim Dounin</name>
<email>mdounin@mdounin.ru</email>
</author>
<published>2023-03-10T04:43:40+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=853912986d9568b049ecb5499b6af987cb13cb14'/>
<id>853912986d9568b049ecb5499b6af987cb13cb14</id>
<content type='text'>
During initial startup the ngx_cycle-&gt;hostname is not available, and
previously this resulted in incorrect logging.  Instead, hostname from the
configuration being parsed is now preserved in the syslog peer structure
and then used during logging.

Similarly, ngx_cycle-&gt;log might not match the configuration where the
syslog peer is defined if the configuration is not yet fully applied,
and previously this resulted in unexpected logging of syslog errors
and debug information.  Instead, cf-&gt;cycle-&gt;new_log is now referenced
in the syslog peer structure and used for logging, similarly to how it
is done in other modules.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
During initial startup the ngx_cycle-&gt;hostname is not available, and
previously this resulted in incorrect logging.  Instead, hostname from the
configuration being parsed is now preserved in the syslog peer structure
and then used during logging.

Similarly, ngx_cycle-&gt;log might not match the configuration where the
syslog peer is defined if the configuration is not yet fully applied,
and previously this resulted in unexpected logging of syslog errors
and debug information.  Instead, cf-&gt;cycle-&gt;new_log is now referenced
in the syslog peer structure and used for logging, similarly to how it
is done in other modules.
</pre>
</div>
</content>
</entry>
<entry>
<title>Syslog: install cleanup handler only once.</title>
<updated>2018-05-14T19:50:57+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2018-05-14T19:50:57+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=5568a6598d7ec830a6759c6ab0419a50b4ab3056'/>
<id>5568a6598d7ec830a6759c6ab0419a50b4ab3056</id>
<content type='text'>
If a socket was re-opened due to an error (02c2352d5b01 and fa0e093b64d7),
additional cleanup handler was installed each time.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a socket was re-opened due to an error (02c2352d5b01 and fa0e093b64d7),
additional cleanup handler was installed each time.
</pre>
</div>
</content>
</entry>
<entry>
<title>Syslog: added "nohostname" option.</title>
<updated>2015-10-26T16:06:42+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2015-10-26T16:06:42+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=e7d298f3fc79785d22a1227b3c140529a6356fff'/>
<id>e7d298f3fc79785d22a1227b3c140529a6356fff</id>
<content type='text'>
The option disables sending hostname in the syslog message header.  This is
useful with syslog daemons that do not expect it (tickets #677 and #783).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The option disables sending hostname in the syslog message header.  This is
useful with syslog daemons that do not expect it (tickets #677 and #783).
</pre>
</div>
</content>
</entry>
<entry>
<title>Syslog: enabled logging of send errors.</title>
<updated>2014-09-01T13:55:07+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2014-09-01T13:55:07+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=d79cbf15e6ba119767d2a035047ff67c19465961'/>
<id>d79cbf15e6ba119767d2a035047ff67c19465961</id>
<content type='text'>
The ngx_cycle-&gt;log is used when sending the message.  This allows to log syslog
send errors in another log.

Logging to syslog after its cleanup handler has been executed was prohibited.
Previously, this was possible from ngx_destroy_pool(), which resulted in error
messages caused by attempts to write into the closed socket.

The "processing" flag is renamed to "busy" to better match its semantics.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The ngx_cycle-&gt;log is used when sending the message.  This allows to log syslog
send errors in another log.

Logging to syslog after its cleanup handler has been executed was prohibited.
Previously, this was possible from ngx_destroy_pool(), which resulted in error
messages caused by attempts to write into the closed socket.

The "processing" flag is renamed to "busy" to better match its semantics.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added syslog support for error_log and access_log directives.</title>
<updated>2014-05-12T12:34:15+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2014-05-12T12:34:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=493b898ae94ae7dd390d77c42f5500974be48393'/>
<id>493b898ae94ae7dd390d77c42f5500974be48393</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
