6.0.0-git
2020-06-07

[#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 2009-01-14 (4162 days ago)
Due
Updated 2009-01-14 (4162 days ago)
Assigned
Resolved 2009-01-14 (4162 days ago)
Milestone
Patch Yes

History
2009-01-14 20:31:19 Chuck Hagenbuch Comment #2
Assigned to Chuck Hagenbuch
State ⇒ Resolved
Reply to this comment
Committed, thanks!
2009-01-14 11:58:39 thomas (at) gelf (dot) net Comment #1
Type ⇒ Enhancement
State ⇒ New
Priority ⇒ 1. Low
Summary ⇒ Allow multiple syslog handlers
Queue ⇒ Horde Framework Packages
Milestone ⇒
Patch ⇒ Yes
New Attachment: better_syslog_handler.patch Download
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