[dev] Syslog duplicating identity
Jan Schneider
jan at horde.org
Thu Oct 28 20:37:28 UTC 2010
Zitat von 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).
Without looking at any code, 2) sounds like the better solution.
Jan.
--
Do you need professional PHP or Horde consulting?
http://horde.org/consulting/
More information about the dev
mailing list