Takacs Bence escribió:
I have successfully configured the ZeroConf feature of chainsaw. Follow
the instructions, add all the required and depending jars. It works with
both sides (logging app and Chainsaw) in the same computer or in
different ones.
Appender XML log4j config:
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="zeroconf"
class="org.apache.log4j.net.ZeroConfSocketHubAppender">
<param name="Name" value="MyZeroConfSockeHubAppender" />
</appender>
<!--ROOT Logger-->
<root>
<level value="INFO" />
<appender-ref ref="zeroconf" />
</root>
</log4j:configuration>
It MAY cause this exception just after auto-connecting:
Exception in thread "Thread-0" java.lang.NoSuchMethodError:
org.apache.log4j.spi.ComponentBase.access$701(Lorg/apache/log4j/net/SocketHubAppender;)Lorg/apache/log4j/ULogger;
at
org.apache.log4j.net.SocketHubAppender$ServerMonitor.run(SocketHubAppender.java:392)
at java.lang.Thread.run(Thread.java:595)
If this happens to you, change the log4j jar version. Use version 1.2.8.
If Paul Smith is reading around, he may have updated information about
this bug.
Thanks, It works.
And do somebody know anything about that "zeroconf" thing mentioned on
Chainsaw's webpage? Does somebody configured successfully the zeroconf
appender?
If yes, how?
Thanks:
Bence
Scott Deboy wrote:
In Chainsaw, when you launch it and it asks you for a configuration,
select the 'SocketReceiver/port 4445' option.
On the app side, use a SocketAppender pointing to localhost, port 4445.
Chainsaw should start to receive your events automatically.
You probably need to make sure locationInfo is not 'true' in the
socketappender.
Scott
-----Original Message-----
From: Takacs Bence [mailto:[EMAIL PROTECTED] Sent: Friday, August 11,
2006 8:53 AM
To: Log4J Users List
Subject: Chainsaw
Hello
Could somebody suggest me a way to try Chainsaw? (appender, appender
config, and chainsaw config)
I've tried the zeroconf thing on the website, and didn't worked.
Could it be the problem, that I runned both my application and
Chainsaw in the
localhost?
Thanks:
Bence
--
Raúl Santiago Gómez
Virtual Software S.L.
[EMAIL PROTECTED]
"El programador crea aplicaciones a prueba de tontos; Dios crea tontos a prueba de
programadores"
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]