With the developer snapshot, the configuration options are all available under the File, Load Chainsaw Configuration menu item.
In your case, I'd select the 'Receive events from the network' option, choose the receiver (SocketReceiver in your case) and choose a port. I would also suggest you select the 'always start Chainsaw with this configuration' option if you don't want to reconfigure Chainsaw each time it starts. You could instead choose the 'Use a Chainsaw config file', which will read in the chainsaw XML config file you provided below and use that configuration (again, check the 'always start Chainsaw with this configuration' option if necessary). Let me know if that works. If it doesn't work, check the chainsaw-log tab for more information. Scott On Wed, Sep 14, 2011 at 8:48 AM, Konduru, Geetha <[email protected]>wrote: > Q) Which version of Chainsaw are you using? > > Not sure how to get this info (downloaded from > http://logging.apache.org/chainsaw/download.html few days back (used > Unix/windows standalone). > > But it is using this jar "log4j-chainsaw-2.0alpha-1". > > Q)try latest developer snapshot. > > I downloaded this "apache-chainsaw-2.1.0-SNAPSHOT-standalone" from > above mentioned site, I gave a log4j config file and started but I could > not see any tab, than I explicitly added a Receiver from Receiver > Panel,Status Bar says a receiver is started but I do not see any tab > (where events will be displayed) > > Thank U, > Vgss > > -----Original Message----- > From: Scott Deboy [mailto:[email protected]] > Sent: Wednesday, September 14, 2011 11:26 AM > To: Log4J Users List > Subject: Re: Chain saw socket appender > > Which version of Chainsaw are you using? > > If you aren't already using it, could you try the latest developer > snapshot > (Mac DMG or tarball) available from here: > > http://people.apache.org/~sdeboy > > > Scott > > On Wed, Sep 14, 2011 at 8:13 AM, Konduru, Geetha > <[email protected]>wrote: > > > I am using Log4j.1.2.16, > > > > > > > > I could say that on Appender side the following tag > > > > <param name="Application" value="app1" /> > > > > > > > > or > > > > <param name="application" value="app1" /> > > > > > > > > > > > > Are read successfully by log4j process because when I used > > following(just for testing) > > > > <param name="pplication" value="app1" /> > > > > > > > > I got following WARNING MESSAGE, > > > > > > > > > > > > log4j:WARN No such property [pplication] in > > org.apache.log4j.net.SocketAppender. > > > > > > > > -----Original Message----- > > From: Scott Deboy [mailto:[email protected]] > > Sent: Wednesday, September 14, 2011 11:06 AM > > To: Log4J Users List > > Subject: Re: Chain saw socket appender > > > > > > > > Can you confirm the version of log4j you are using on the appender > side? > > > > > > > > > > > > > > > > On Sep 14, 2011, at 7:48 AM, "Konduru, Geetha" > > > > <[email protected]> wrote: > > > > > > > > > I tried using "application" instead of "Application" but still I get > > > > > the > > > > > tab name as "localhost- " only. > > > > > > > > > > Thank u, > > > > > vgss > > > > > > > > > > -----Original Message----- > > > > > From: Scott Deboy [mailto:[email protected]] > > > > > Sent: Wednesday, September 14, 2011 10:37 AM > > > > > To: Log4J Users List > > > > > Subject: Re: Chain saw socket appender > > > > > > > > > > Try application instead of Application. > > > > > > > > > > > > > > > > > > > > On Sep 14, 2011, at 7:29 AM, "Konduru, Geetha" > > > > > <[email protected]> wrote: > > > > > > > > > >> Sorry, it is not working for me... > > > > >> > > > > >> Case1:-I used exactly following configuration, > > > > >> > > > > >> <appender name="SOCKET1" > class="org.apache.log4j.net.SocketAppender"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="RemoteHost" value="localhost"/> > > > > >> <param name="Application" value="app1"/> > > > > >> <param name="ReconnectionDelay" value="60000"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </appender> > > > > >> > > > > >> On chainsaw I used following configuration > > > > >> > > > > >> <plugin name="MyReceiver1" > > > > >> class="org.apache.log4j.net.SocketReceiver"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </plugin> > > > > >> > > > > >> > > > > >> In chainsaw I see a tab with name "localhost- ",not > "localhost-app1" > > > > >> > > > > >> > > > > >> > > > > >> Case 2:- > > > > >> > > > > >> One instance of an application is running with following > > > > >> configuration. > > > > >> <appender name="SOCKET1" > class="org.apache.log4j.net.SocketAppender"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="RemoteHost" value="localhost"/> > > > > >> <param name="Application" value="app1"/> > > > > >> <param name="ReconnectionDelay" value="60000"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </appender> > > > > >> > > > > >> > > > > >> Second instance of same application is running with following > > > > >> configuration > > > > >> > > > > >> > > > > >> <appender name="SOCKET2" > class="org.apache.log4j.net.SocketAppender"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="RemoteHost" value="localhost"/> > > > > >> <param name="Application" value="app2"/> > > > > >> <param name="ReconnectionDelay" value="60000"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </appender> > > > > >> > > > > >> > > > > >> On chainsaw I used following configuration > > > > >> > > > > >> <plugin name="MyReceiver1" > > > > >> class="org.apache.log4j.net.SocketReceiver"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </plugin> > > > > >> > > > > >> > > > > >> STILL I see one tab with name "localhost- " and loggingevents from > > > > >> two > > > > >> different Process are shown in one tab. > > > > >> > > > > >> > > > > >> > > > > >> Would you please tell me as where I am going wrong. > > > > >> > > > > >> > > > > >> Thanks a lot, > > > > >> VGSS > > > > >> > > > > >> > > > > >> > > > > >> > > > > >> -----Original Message----- > > > > >> From: Scott Deboy [mailto:[email protected]] > > > > >> Sent: Wednesday, September 14, 2011 1:54 AM > > > > >> To: Log4J Users List > > > > >> Subject: Re: Chain saw socket appender > > > > >> > > > > >> Since log4j 1.2.15, the socket-based appenders have an > 'application' > > > > >> parameter that can be set which will result in an additional > > > > >> application > > > > >> property being set on each event, which will then be used by > > > > >> Chainsaw to > > > > >> route events to the correct tab. > > > > >> > > > > >> The following example will result in events being routed to a tab > > > > >> called > > > > >> 'localhost-app1': > > > > >> > > > > >> <appender name="SOCKET1" > class="org.apache.log4j.net.SocketAppender"> > > > > >> <param name="Port" value="12346"/> > > > > >> <param name="RemoteHost" value="localhost"/> > > > > >> <param name="Application" value="app1"/> > > > > >> <param name="ReconnectionDelay" value="60000"/> > > > > >> <param name="Threshold" value="ALL"/> > > > > >> </appender> > > > > >> > > > > >> By default, events are routed to tabs by resolving the hostname and > > > > >> application event properties. The tab/name event routing > expression > > > > >> is > > > > >> configurable via the application-wide preferences dialog. > > > > >> > > > > >> Scott > > > > >> > > > > >> > > > > >> On Tue, Sep 13, 2011 at 6:22 AM, Konduru, Geetha > > > > >> <[email protected]>wrote: > > > > >> > > > > >>> Hi, > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> 1. Following is how my SocketAppender configured. > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> <appender name="SOCKET1" > > > > >>> class="org.apache.log4j.net.SocketAppender"> > > > > >>> > > > > >>> <param name="Port" value="12346"/> > > > > >>> > > > > >>> <param name="RemoteHost" value="localhost"/> > > > > >>> > > > > >>> <param name="ReconnectionDelay" value="60000"/> > > > > >>> > > > > >>> <param name="Threshold" value="ALL"/> > > > > >>> > > > > >>> </appender> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> 2. Following is how my SocketReceiver is configured. > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> <plugin name="MyReceiver1" > > > > >>> class="org.apache.log4j.net.SocketReceiver"> > > > > >>> > > > > >>> < <param name="Port" value="12346" /> > > > > >>> > > > > >>> < <param name="name" value="Server-1" /> > > > > >>> > > > > >>> < <param name="Threshold" value="ALL" /> > > > > >>> > > > > >>> </plugin> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> By this in chainsaw I am getting a Tabbed Pane with > > > > >>> name as "localhost-", but what I am looking for is a Tabbed Pane > > > > >>> with > > > > >>> name "localhost-AppName". > > > > >>> > > > > >>> > > > > >>> > > > > >>> Please let me know what changes should I do to get, Tabbed Pane > name > > > > >> as > > > > >>> "localhost-AppName". > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> > > > > >>> Thank U, > > > > >>> > > > > >>> vgss > > > > >>> > > > > >>> *** > > > > >>> > ******************************************************************* > > > > >>> This e-mail message and any attachments contain confidential > > > > >> information > > > > >>> from Medco. If you are not the intended recipient, you are hereby > > > > >> notified > > > > >>> that disclosure, printing, copying, distribution, or the taking of > > > > >>> any > > > > >>> action in reliance on the contents of this electronic information > is > > > > >>> strictly prohibited. If you have received this e-mail message in > > > > >> error, > > > > >>> please immediately notify the sender by reply message and then > > > > >>> delete > > > > >> the > > > > >>> electronic message and any attachments. > > > > >>> > > > > >> > > > > >> *** > > > > >> ******************************************************************* > > > > >> This e-mail message and any attachments contain confidential > > > > >> information from Medco. If you are not the intended recipient, you > > > > >> are hereby notified that disclosure, printing, copying, > > > > >> distribution, or the taking of any action in reliance on the > > > > >> contents of this electronic information is strictly prohibited. If > > > > >> you have received this e-mail message in error, please immediately > > > > >> notify the sender by reply message and then delete the electronic > > > > >> message and any attachments. > > > > >> > > > > >> > --------------------------------------------------------------------- > > > > >> 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] > > > > > > > > > > > ********************************************************************** > > > > > This e-mail message and any attachments contain confidential > > > > > information from Medco. If you are not the intended recipient, you > > > > > are hereby notified that disclosure, printing, copying, > > > > > distribution, or the taking of any action in reliance on the > > > > > contents of this electronic information is strictly prohibited. If > > > > > you have received this e-mail message in error, please immediately > > > > > notify the sender by reply message and then delete the electronic > > > > > message and any attachments. > > > > > > > > > > > --------------------------------------------------------------------- > > > > > 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] > > > > > > > > ********************************************************************** > > This e-mail message and any attachments contain confidential > information > > from Medco. If you are not the intended recipient, you are hereby > notified > > that disclosure, printing, copying, distribution, or the taking of any > > action in reliance on the contents of this electronic information is > > strictly prohibited. If you have received this e-mail message in > error, > > please immediately notify the sender by reply message and then delete > the > > electronic message and any attachments. > > > > ********************************************************************** > This e-mail message and any attachments contain confidential information > from Medco. If you are not the intended recipient, you are hereby notified > that disclosure, printing, copying, distribution, or the taking of any > action in reliance on the contents of this electronic information is > strictly prohibited. If you have received this e-mail message in error, > please immediately notify the sender by reply message and then delete the > electronic message and any attachments. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > >
