Log4j XMLSocketReceiver example
0

This is the most basic setup for receiving log4j events from an XML Socket. When run the application will listen on por 4448 and print logging events to standard out. For an example of configuring a Pylons application to send events to an xml socket see Lumberjacking with log4j's Chainsaw... more

This is the most basic setup for receiving log4j events from an XML Socket. When run the application will listen on por 4448 and print logging events to standard out. For an example of configuring a Pylons application to send events to an xml socket see Lumberjacking with log4j's Chainsaw

To compile it use a command like javacLogTest.java-cp$LOG4JLIB/log4j-1.2.15.jar:$LOG4JLIB/apache-log4j-receivers-1.0.jar:$LOG4JLIB/apache-log4j-component-1.0.jar

To run it use a command like java-cp$LOG4JLIB/log4j-1.2.15.jar:$LOG4JLIB/apache-log4j-receivers-1.0.jar:$LOG4JLIB/apache-log4j-component-1.0.jar:.LogTest