[Tickets #7845] Allow multiple syslog handlers

bugs at horde.org bugs at horde.org
Wed Jan 14 11:58:39 UTC 2009


DO NOT REPLY TO THIS MESSAGE. THIS EMAIL ADDRESS IS NOT MONITORED.

Ticket URL: http://bugs.horde.org/ticket/7845
------------------------------------------------------------------------------
  Ticket             | 7845
  Created By         | thomas at gelf.net
  Summary            | Allow multiple syslog handlers
  Queue              | Horde Framework Packages
  Version            | HEAD
  Type               | Enhancement
  State              | New
  Priority           | 1. Low
  Milestone          |
  Patch              | 1
  Owners             |
+New Attachment     | better_syslog_handler.patch
------------------------------------------------------------------------------


thomas at gelf.net (2009-01-14 06:58) wrote:

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







More information about the bugs mailing list