6.0.0-alpha10
5/15/25

[#7845] Allow multiple syslog handlers
Summary Allow multiple syslog handlers
Queue Horde Framework Packages
Queue Version HEAD
Type Enhancement
State Resolved
Priority 1. Low
Owners chuck (at) horde (dot) org
Requester thomas (at) gelf (dot) net
Created 01/14/2009 (5965 days ago)
Due
Updated 01/14/2009 (5965 days ago)
Assigned
Resolved 01/14/2009 (5965 days ago)
Milestone
Patch Yes

History
01/14/2009 08:31:19 PM Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Committed, thanks!
01/14/2009 11:58:39 AM thomas (at) gelf (dot) net Comment #1
Priority ⇒ 1. Low
New Attachment: better_syslog_handler.patch Download
Patch ⇒ Yes
Milestone ⇒
Queue ⇒ Horde Framework Packages
Summary ⇒ Allow multiple syslog handlers
Type ⇒ Enhancement
State ⇒ New
Reply to this comment
As openlog() acts in a "global scope", you are unable to use two 
parallel instances of Horde_Log_Handler_Syslog with different idents 
and / or facilities - the last instances settings would always 
override the previous ones.



The attached patch allows to ignore this drawbacks of PHP's syslog 
functions and automagically calls openlog() where required. Example 
use case: log all but IMP messages with facility "user", use facility 
"mail" for IMP.



Best regards,

Thomas Gelf


Saved Queries