Hi Scott, I just tested it & it works fine. Thank you for the quick response!
- Phil -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Friday, May 14, 2004 3:23 AM To: Log4J Users List Subject: RE: log4j 1.2.8 and Chainsaw v2 Philip, I've updated the LoggingEvent serialization code, which should resolve this issue. Download the latest version of log4j from CVS and you should be able to use Chainsaw V2 to view log4j 1.2.8 socketappender-generated events. Thanks, Scott -----Original Message----- From: Lawrence, Philip [mailto:[EMAIL PROTECTED] Sent: Thu 5/13/2004 1:24 PM To: '[EMAIL PROTECTED]' Cc: Subject: log4j 1.2.8 and Chainsaw v2 Hi, Is it possible to send events from a program using log4j version 1.2.8 to Chainsaw v2? I'm trying to do this with no luck. It works OK with the Chainsaw from log4j 1.2.8. My log4jInit.XML file has the following appender for Chainsaw: <appender name="CHAINSAW_CLIENT" class="org.apache.log4j.net.SocketAppender"> <param name="RemoteHost" value="localhost"/> <param name="Port" value="4445"/> </appender> I start Chainsaw v2 first. It starts up, displays a warning popup - "You have no Receivers defined...". I choose "Let me use a simple Receiver:" - SocketReceiver, port 4445. I then start my program with DEBUG messages enabled. My program gives this error: log4j:WARN Detected problem with connection: java.net.SocketException: Software caused connection abort: socket write error In Chainsaw v2, I get this event: Level ERROR Logger org.apache.log4j.net.SocketNode Time 2004-05-13 16:21:36,076 Thread Thread-1 Message Unexpected exception. Closing connecition. NDC null Class Method Line File Properties {{log4jid,1}} Throwable java.lang.NullPointerException at org.apache.log4j.CategoryKey. (CategoryKey.java:29) at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:425) at org.apache.log4j.Hierarchy.getLogger(Hierarchy.java:407) at org.apache.log4j.plugins.Receiver.doPost(Receiver.java:105) at org.apache.log4j.net.SocketReceiver.doPost(SocketReceiver.java:397) at org.apache.log4j.net.SocketNode.run(SocketNode.java:143) at java.lang.Thread.run(Thread.java:534) Any help would be greatly appreciated. Thank you, - Phil Philip Lawrence Siemens Network Convergence LLC 271 Mill Road Chelmsford, MA 01824 978-923-3302 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
