No problem, I'll clarify the best I can. The basic idea behind the system is this:
There are a number of independent systems all logging using log4j to their own respective log files. The intended use for this system is to keep track of daily, weekly, monthly..etc stats for a particular system (assumed in this case to be a single log). I'm trying to use the log4j Receivers to bring the logging events that post to those files (or any type of receiver (appender?, let me know if I'm getting the terminology wrong)) back into my system to handle them. I need to grab the events as the Receiver gets them so I can convert them into my domain objects and do what I need with them. It would be helpful if there were some event hooks that I could use for when a log message is received, but I haven't been able to find anything yet. Is this helping at all? Thanks, Matt Paul Smith-2 wrote: > >> >> 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] > > > -- View this message in context: http://www.nabble.com/Handling-Logging-Events-Directly-tp15425126p15425262.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]
