logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bakermatt <nab...@bakermatt.com>
Subject Re: Handling Logging Events Directly
Date Tue, 12 Feb 2008 02:11:11 GMT

Looks like I may have posted to the wrong list.  My bad.


bakermatt wrote:
> Hi,
> 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:
> So far I've determined that I need to create and implement the following:
> 1)  My own implementation of Appender that passes the information I need
> around.
> 2)  Attach that Appender to the Root logger in
> LogManager.getLoggerRepository()
> However, how can I make the LoggingEvents brought in by the Receiver
> dispatch to my Appender?
> I know this is vague but wading through the Chainsaw source is a long and
> arduous process and I'm getting a bit confused.
> Thanks,
> Matt

View this message in context: http://www.nabble.com/Handling-Logging-Events-Directly-tp15424973p15425125.html
Sent from the Log4j - Dev mailing list archive at Nabble.com.

To unsubscribe, e-mail: log4j-dev-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org

View raw message