Paul, I thought this was how it worked but was getting extremely confused when trying to mimic what was going on inside Chainsaw with the interaction between ChainsawAppender and ChainsawAppenderHandler.
I have a DataCollector class with an instance of a Receiver (the receiver it's interested in) and a list of data samples. When I get the LoggingEvents (I think from an EventBatch like in Chainsaw) I need to transform them into my Data Samples and store them in that list. Thanks, Matt Paul Smith-2 wrote: > >> >> I've spent the last couple weeks attempting to work the the Apache >> Receivers >> but to no avail. Could someone explain to me exactly how you get the >> LoggingEvents out of a receiver once they arrive? > > A Receiver 'posts' the received LoggingEvent into the local log4j > system just as if the thing that generated the event existed in that > process. > > To that end, once the LoggingEvent is in the local log4j 'bus', you > need to configure an Appender to deal with it. A log4j environment > with one or more Receivers and no Appenders is effectively > broadcasting into silence. As close to 'cat * > /dev/null' as you can > get. > > What exactly do you want to do with the events once you've received > them? > > cheers, > > Paul > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/How-do-receivers-work--tp15576255p15578362.html Sent from the Log4j - Users mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
