The one thing missing is how you configured Chainsaw to connect to that SocketAppender? Did you use a XML file for automatic configuration? Did you use the Receiver panel on the right? Or did you use the dialog box that pops up on startup if there is no Receivers defined?

Lastly, is the remote log4j 'host' that you are trying to get Chainsaw connected to on the same physical machine that Chainsaw is running on?

These questions will help us get you going further.

cheers,

Paul Smith
Currimbhoy Shahyan wrote:

Hi,

I have just started looking into Chainsaw however I am having some trouble
getting it configured.
I have added the following code in my log4j properties file and have added
the corresponding receiver in Chainsaw:
<!-- Chainsaw Client -->

<appender name= "CHAINSAW_CLIENT" class=
"org.apache.log4j.net.SocketAppender" >

<param name= "RemoteHost" value= "localhost"/>

<param name= "Port" value= "4445" />

</appender >

When I try to perform a simple logging (logger.info("Sample info message")),
it turns up in the console but in Chainsaw, I get


Level     INFO

Logger    org.apache.log4j.net.SocketNode

Message    Caught java.net.SocketException closing connection

Can anyone tell me what the problem is. Do I need to configure something
else?
Also, how are the other Chainsaw fields set (e.g. Thread..which always seems
to be Thread-7)?

Thanks in advance,
Shahyan.





-------------------------------------------------------------------------------
This message and any included attachments are from Siemens Medical Solutions USA, Inc. and are intended only for the addressee(s). The information contained herein may include trade secrets or privileged or otherwise confidential information. Unauthorized review, forwarding, printing, copying, distributing, or using such information is strictly prohibited and may be unlawful. If you received this message in error, or have reason to believe you are not authorized to receive it, please promptly delete this message and notify the sender by e-mail with a copy to [EMAIL PROTECTED]


Thank you




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to