I am working on a system implementing the log4j receivers that requires me to directly access the LoggingEvent when it is posted to an appender. The
basic idea is to take external logging events, read them in through a
Receiver, and store data about them. Someone please let me know if I'm on
the right track with this:


I've got a bit confused about exactly what you're trying to do here. Could you expand here ?


However, how can I make the LoggingEvents brought in by the Receiver
dispatch to my Appender?

A Receiver will post the event into the local log4j system as if it were produced inside the same VM. So simply attach your custom appender to the root logger to get all received logging events, or attach the Appender to the specific logger, or logger hierarchy you're interested in.

Again, might be easier if you expand a bit more on what you're trying to achieve.

cheers,

Paul

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to