<feed xmlns='http://www.w3.org/2005/Atom'>
<title>nginx.git/src/core/ngx_syslog.c, branch release-1.29.2</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: re-open syslog udp socket on send error (ticket #1477).</title>
<updated>2018-05-08T16:35:56+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2018-05-08T16:35:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=644d26e841ec06023d0dc3eb9b624b404043c473'/>
<id>644d26e841ec06023d0dc3eb9b624b404043c473</id>
<content type='text'>
Previously, only unix domain sockets were reopened to tolerate cases when
local syslog server was restarted.  It makes sense to treat other cases
(for example, local IP address changes) similarly.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Previously, only unix domain sockets were reopened to tolerate cases when
local syslog server was restarted.  It makes sense to treat other cases
(for example, local IP address changes) similarly.
</pre>
</div>
</content>
</entry>
<entry>
<title>Style.</title>
<updated>2016-03-30T08:52:16+00:00</updated>
<author>
<name>Ruslan Ermilov</name>
<email>ru@nginx.com</email>
</author>
<published>2016-03-30T08:52:16+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=7ad57da59821294255610545b2b5ce07e74124a5'/>
<id>7ad57da59821294255610545b2b5ce07e74124a5</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</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: allowed underscore symbol in tag (ticket #667).</title>
<updated>2014-11-20T17:02:21+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2014-11-20T17:02:21+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=742b5dd04514024849447df3343ab00654fcaaac'/>
<id>742b5dd04514024849447df3343ab00654fcaaac</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Syslog: improved error handling of unix domain sockets.</title>
<updated>2014-08-26T10:56:54+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2014-08-26T10:56:54+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=27fa3123f917c3af7e914d4a082fe96ef518e6f7'/>
<id>27fa3123f917c3af7e914d4a082fe96ef518e6f7</id>
<content type='text'>
If a syslog daemon is restarted and the unix socket is used, further logging
might stop to work.  In case of send error, socket is closed, forcing
a reconnection at the next logging attempt.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If a syslog daemon is restarted and the unix socket is used, further logging
might stop to work.  In case of send error, socket is closed, forcing
a reconnection at the next logging attempt.
</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>Syslog: fixed message sending on win32.</title>
<updated>2014-05-27T11:42:34+00:00</updated>
<author>
<name>Vladimir Homutov</name>
<email>vl@nginx.com</email>
</author>
<published>2014-05-27T11:42:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.sigsegv.uk/nginx.git/commit/?id=21655ae09723adede811a695c06a4a27ca4397bb'/>
<id>21655ae09723adede811a695c06a4a27ca4397bb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
