[dev] Syslog duplicating identity

Chuck Hagenbuch chuck at horde.org
Fri Oct 29 20:40:30 UTC 2010


Quoting Gonçalo Queirós <goncalo.queiros at portugalmail.net>:

> Hi there list.
> Been trying to solve the bug i submitted
> (http://bugs.horde.org/ticket/9322, which has a terrible title btw), and
> from what i can see, there seems to be two options to solve this issue:
>
> 1 - Create a new conf (ex $conf['log']['syslog_ident']) to hold the
> identity value to php's "openlog" function
>
> 2 - Refactor the code, and instead of having Horde_Core_Log_Logger
> prepend the ident to the message and pass it to its parent
> (Horde_Log_Logger) have Horde_Log_Logger asking every handler if it
> knows how to handle the ident conf. If the handler doesn't know, pass it
> the message prepended with the ident, if the handler knows how to handle
> the ident conf, just pass it the message, and change the handler so it
> knows what to do.
>
> I can patch any of these solutions, if you find any of them correct. If
> not, just let me know, and i can patch it too (i hope).

What does "ident" mean in the context of anything other than syslog?  
Seems to me like configuring it specifically on the syslog logger  
makes sense, but if someone has a good answer to my question then I  
could be convinced...

-chuck


More information about the dev mailing list