Log4j2 has no concept of receivers, correct?
On Fri, Feb 22, 2013 at 3:39 PM, Ralph Goers <[email protected]>wrote: > Scott, > > Yogi has been asking other questions about Log4j 2 so I'm not clear if his > question applies to that or 1.x. Or does the VFSLogFilePatternReceiver > work with Log4j 2? > > Ralph > > > On Feb 22, 2013, at 3:32 PM, Scott Deboy wrote: > > > If you want the events to end up in log4j (being processed by an > appender, > > it's very easy, just define a (VFS)LogFilePatternReceiver in your log4j > > configuration file. > > > > If you instead want the LogEvents so you can do something else with them, > > you can use the (VFS)LogFilePatternReceiver outside of log4j, just > > construct it, call appropriate setters, and call activateOptions. > Wherever > > the receiver calls doPost, you can instead hold on to the generated > event. > > > > > http://svn.apache.org/repos/asf/logging/chainsaw/trunk/src/main/java/org/apache/log4j/varia/LogFilePatternReceiver.java > > > > The VFS version supports Commons-VFS sources (sftp, etc): > > > http://svn.apache.org/repos/asf/logging/chainsaw/trunk/src/main/java/org/apache/log4j/chainsaw/vfs/VFSLogFilePatternReceiver.java > > > > Scott > > > > > > On Fri, Feb 22, 2013 at 2:23 PM, Yogi Nerella <[email protected]> > wrote: > > > >> Hi, > >> > >> Any tools which can take a log file and the pattern string and generate > the > >> events? > >> > >> Thanks > >> Yogi > >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
