Req #52052 [Com]: add syslog support to FPM
| From: | fat@php.net | Date: | Sun, 13 Jun 2010 09:03:33 +0000 |
| Subject: | Req #52052 [Com]: add syslog support to FPM | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151422@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52052&edit=1
ID: 52052
Comment by: fat@php.net
Reported by: ef-lists at email dot de
Summary: add syslog support to FPM
Status: Assigned
Type: Feature/Change Request
Package: FPM related
Operating System: Linux/*NIX
PHP Version: 5.3SVN-2010-06-11 (SVN)
Assigned To: fat
New Comment:
my mistakes. The v2 patch was buggy. Use v3 instead.
Previous Comments:
------------------------------------------------------------------------
[2010-06-13 11:03:00] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-syslog.v3.patch
Revision: 1276419780
URL:
http://bugs.php.net/patch-display.php?bug=52052&patch=fpm-syslog.v3.patch&revision=1276419780
------------------------------------------------------------------------
[2010-06-13 10:41:26] fat@php.net
You can try instead the new revision of the patch I've just attached.
It adds sending slowlog to syslog.
Set slowlog to syslog. Moreover you can set slowlog_syslog_level to same
values as
log_level. By default it's LOG_DEBUG. There is no way to change the
ident and the
facility for slowlog, it takes the same values as the globals ones
(syslog_facility and syslog_event). There is no need to because the pool
name is
prepended to every slowlog message.
------------------------------------------------------------------------
[2010-06-13 10:36:27] fat@php.net
The following patch has been added/updated:
Patch Name: fpm-syslog.v2.patch
Revision: 1276418186
URL:
http://bugs.php.net/patch-display.php?bug=52052&patch=fpm-syslog.v2.patch&revision=1276418186
------------------------------------------------------------------------
[2010-06-12 19:54:05] ef-lists at email dot de
Great job! :-)
I'll try it out and report feedback to you.
------------------------------------------------------------------------
[2010-06-12 18:49:35] fat@php.net
The attached patch should activate syslog sypport to error_log only. You
can try
it on trunk.
change error_log to "syslog"
You can also set
syslog_facility and syslog_ident to feet your needs. But default values
should
be OK.
I'm working on the slowlog patch also but it's a bit more complicated.
++ Jerome
------------------------------------------------------------------------
The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
http://bugs.php.net/bug.php?id=52052
--
Edit this bug report at http://bugs.php.net/bug.php?id=52052&edit=1