[erlang-questions] log4erl as system logger
Wed Jun 2 14:30:11 CEST 2010
W dniu 02.06.2010 12:13, Max Lapshin pisze:
> Hi. I want to use log4erl as a default error logger for all system (to
> log all process failures),
> but I don't understand how.
> What part of erlang documentation have I missed? Where should I read
> to understand, how to change logger.
I've looked at the log4erl code and there is a module called
"error_logger_log4erl_h" which implements gen_event behavior and acts as
a "bridge" between error_logger protocol and log4erl protocol.
Apparently, you have to add this handler to the standard event_logger
process so that all other processes using error_logger calls may be
logged by log4erl logger. I think you cannot replace standard
error_logger because log4erl do not implement error_logger protocol.
Both must co-exists within the system.
> erlang-questions (at) erlang.org mailing list.
> See http://www.erlang.org/faq.html
> To unsubscribe; mailto:
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 262 bytes
Desc: OpenPGP digital signature
More information about the erlang-questions