Leave jboss's log4j version at 1.2.8. It already includes SocketHubAppender. Add a configuration section to log4j.xml to enable a SocketHubAppender and make sure it's working (you see the server LISTENening on the port using netstat, etc.)
Have the developers use SocketHubReceiver in Chainsaw to connect to the SocketHubAppender. As long as you're not using LocationInfo or MDC, this will work fine (make sure SocketHubAppender is defined and configured before any appenders that use LocationInfo or the line/method/file/class patterns in a fileAppender). SocketHubReceiver does have 'host' and 'port' properties. Chainsaw provides access to the receiver JavaDocs from its help menu. Scott -----Original Message----- From: Subramani, GnanaShekar (GE Healthcare, non-ge) [mailto:[EMAIL PROTECTED] Sent: Wed 1/26/2005 10:04 AM To: Log4J Users List Cc: Subject: RE: Chainsaw (SocketAppender/SocketReceiver) Hi Scott, Thanks a lot. Let me describe what I want more clearly. Requirement: We have a jboss application server on solaris 8 unix box . The developers are creating web applications and I deploy them onto jboss. The developers can access the application using URL, but also want to see the log files to debug issues. I donot want to give access to this box to all the developers. Instead I want to configure a SocketAppender/SocketHubAppender that will write log files to a socket. I want all the developers to use chainsaw in their laptops and configure it with SocketReceiver/SocketHubReceiver to receive the log files. Please suggest if this is possible , if I somehow get log4j in jboss upgraded to 1.3 alpha. Currently log4j 1.2.8 is being used. Thanks & Regards, -GnanaShekar- -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 26, 2005 11:52 AM To: Log4J Users List Subject: RE: Chainsaw (SocketAppender/SocketReceiver) SocketReceiver accepts connections, socketAppender connects to SocketReceiver - SocketAppender has the 'remoteHost' property. -----Original Message----- From: Subramani, GnanaShekar (GE Healthcare, non-ge) [mailto:[EMAIL PROTECTED] Sent: Wed 1/26/2005 9:48 AM To: [email protected] Cc: Subject: Chainsaw (SocketAppender/SocketReceiver) Hi, Is SocketReceiver realley used to receive logs from a remote system. I ask this because, I donot see any property named "host", being asked while creating a SocketReceiver in ChainSaw V2. Regards, -GnanaShekar- --------------------------------------------------------------------- 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
