aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_syslog.c
Commit message (Collapse)AuthorAge
* Syslog: introduced error log handler.Maxim Dounin2023-03-10
| | | | | | | 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.
* Syslog: removed usage of ngx_cycle->log and ngx_cycle->hostname.Maxim Dounin2023-03-10
| | | | | | | | | | | | | | During initial startup the ngx_cycle->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->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->cycle->new_log is now referenced in the syslog peer structure and used for logging, similarly to how it is done in other modules.
* Syslog: install cleanup handler only once.Vladimir Homutov2018-05-14
| | | | | If a socket was re-opened due to an error (02c2352d5b01 and fa0e093b64d7), additional cleanup handler was installed each time.
* Syslog: re-open syslog udp socket on send error (ticket #1477).Vladimir Homutov2018-05-08
| | | | | | 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.
* Style.Ruslan Ermilov2016-03-30
|
* Syslog: added "nohostname" option.Vladimir Homutov2015-10-26
| | | | | 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).
* Syslog: allowed underscore symbol in tag (ticket #667).Vladimir Homutov2014-11-20
|
* Syslog: improved error handling of unix domain sockets.Vladimir Homutov2014-08-26
| | | | | | 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.
* Syslog: enabled logging of send errors.Vladimir Homutov2014-09-01
| | | | | | | | | | | The ngx_cycle->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.
* Syslog: fixed message sending on win32.Vladimir Homutov2014-05-27
|
* Syslog: fixed possible resource leak and more verbose logging.Vladimir Homutov2014-05-26
| | | | Found by Coverity (CID 1215646).
* Added syslog support for error_log and access_log directives.Vladimir Homutov2014-05-12