Edit report at http://bugs.php.net/bug.php?id=52052&edit=1

 ID:               52052
 Comment by:       f...@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:

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.


Previous Comments:
------------------------------------------------------------------------
[2010-06-13 10:36:27] f...@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] f...@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

------------------------------------------------------------------------
[2010-06-12 18:47:15] f...@php.net

The following patch has been added/updated:

Patch Name: fpm-syslog.v1.patch
Revision:   1276361235
URL:       
http://bugs.php.net/patch-display.php?bug=52052&patch=fpm-syslog.v1.patch&revision=1276361235

------------------------------------------------------------------------
[2010-06-11 18:10:10] ef-lists at email dot de

Description:
------------
At current, FPM only allows logging to local files, both for the
ErrorLog and SlowLog.



Using syslog aids the administrator greatly in centralizing logfiles.

Also PHP itself has syslog support, so FPM should consequently have it,
too.



I hereby ask to add syslog support to FPM.



------------------------------------------------------------------------



-- 
Edit this bug report at http://bugs.php.net/bug.php?id=52052&edit=1

Reply via email to