There is a way to get them both to work, but lets try removing that first to get you going.
cheers,
Paul Smith
Robert Vaessen wrote:
Hello,
I tried real hard (google, mail archives) not to post this message. Please forgive any "stupidity".
I am logging messages using a SocketAppender. If I use the Chainsaw that is "bundled" with log4j I see my messages. If I use Chainsaw V2 then I only see the "housekeeping" messages that are produced by the SocketReceiver when the connections are made; I never see my message.
Here is my client side log4j configuration:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration debug="true" xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="Socket" class="org.apache.log4j.net.SocketAppender">
<param name="RemoteHost" value="localhost"/>
<param name="Port" value="4560"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%t %-5p %c{2} - %m%n"/>
</layout>
</appender>
<root>
<priority value="debug"/>
<appender-ref ref="Socket"/>
</root>
</log4j:configuration>
Here is the command that I use to start the bundled Chainsaw:
start javaw -cp <MyPath>\log4j-1.2.9.jar -Dchainsaw.port=4560 org.apache.log4j.chainsaw.Main
The "new" Chainsaw, which I obtain via java webstart, reports its version as "Chainsaw 2.0alpha". When I run it I am given the opportunity to create a Simple Socket Receiver. I do so, specifying a port number of 4560.
Would someone please advise me? Also, feedback on whether or not I successfully posted this message as "text only" will be welcome.
Best Regards,
Robert Vaessen
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]