syslog support for nginx
Marlon de Boer
marlon at hyves.nl
Fri May 16 14:10:43 MSD 2008
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Marlon de Boer wrote:
| At my work we use syslog to maintain all logs on a central place. We
really missed the syslog support in nginx so I created a patch which
allows syslog logging. Patch was diffed against 0.6.31, but also applies
to 0.6.29 and 0.6.30.
|
Please do not use the previous posted patch because it contains a bug
with buffer allocation. I've attached a new one that solved the issue. I
used strncpy() and calloc() in my patch, which according documentation
should be portable between most unix systems.
You can enable syslog support via the configure script using --with-syslog.
Regards,
Marlon de Boer
System administrator Hyves.nl
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
iD8DBQFILV2jQ6KLqYkbN3cRAoxQAJ4sksTYLQ2JahieHcleINx/YKAxyACgtWYG
s2X5WQMs8Esx6WQnijl7BFc=
=+YC/
-----END PGP SIGNATURE-----
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nginx_syslog.patch
URL: <http://nginx.org/pipermail/nginx/attachments/20080516/c6d98574/attachment.ksh>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nginx_syslog.patch.sig
Type: application/octet-stream
Size: 65 bytes
Desc: not available
URL: <http://nginx.org/pipermail/nginx/attachments/20080516/c6d98574/attachment.obj>
More information about the nginx
mailing list