[dev] Syslog duplicating identity
goncalo.queiros at portugalmail.net
Wed Oct 27 18:24:43 UTC 2010
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).
*Portugalmail* | plataformas de inovação
More information about the dev