The way we do this is to write the log files using XMLAppender and then you can load the files in using file -> load Log4J file. Works very well.
Cheers, Stephen Amit Nigam <[EMAIL PROTECTED] To: "'Log4J Users List'" <[EMAIL PROTECTED]> chspan.com> cc: Subject: RE: chainsaw for viewing messages remotely?? 25/08/2004 09:43 Please respond to "Log4J Users List" Actually, in my case there will be a huge number of log files (that are offline & no more msges will b appended to them) and i m looking for a feature that allows me to randomly select any one of these log files and view it in chainsaw. Any help available?? amit -----Original Message----- From: Stephen Pain [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 25, 2004 2:16 PM To: Log4J Users List Subject: RE: chainsaw for viewing messages remotely?? Amit - you just need to define a second <plugin> .... </plugin>, in the chainsaw config file, this time specifying the second file name - chainsaw will then create two receivers, with the log from each going into a separate tab in chainsaw (by default, although the tab(s) that the events get sent to can be configured from within the chainsaw gui). Cheers, Stephen Amit Nigam <[EMAIL PROTECTED] To: "'Log4J Users List'" <[EMAIL PROTECTED]> chspan.com> cc: Subject: RE: chainsaw for viewing messages remotely?? 25/08/2004 08:18 Please respond to "Log4J Users List" Thanx Scott. i tried it and it worked fine. but suppose i wish to see more than one log file then what option do i have? Simply changing the "fileName" property in Chainsaw didnt do anything.Can u help me on this? Appreciating all your help, Amit -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Tuesday, August 24, 2004 10:21 PM To: Log4J Users List Subject: RE: chainsaw for viewing messages remotely?? If your log files are accessible via a URL and were written using a FileAppender specifying a PatternLayout, use LogFilePatternReceiver. LogFilePatternReceiver provides a 'tailing' parameter which will tail the files (view in real-time or offline). You'll also need to customize the 'logFormat' parameter to match the format in your log file. Add this to your chainsaw configuration file (an example configuration file is available from the 'Welcome' tab): <plugin name="logfile" class="org.apache.log4j.varia.LogFilePatternReceiver"> <param name="timestampFormat" value="yyyy-MM-d HH:mm:ss,SSS"/> <param name="logFormat" value="RELATIVETIME [THREAD] LEVEL LOGGER * - MESSAGE"/> <param name="fileURL" value="file:///c:/server.log"/> <param name="tailing" value="true"/> </plugin > You can also use a SocketAppender to send events directly to the Chainsaw app, or use SocketHubAppender on the event source side and SocketHubReceiver in Chainsaw. If you write events to a file using XMLLayout, there currently isn't a receiver which will 'tail' the file, but you can view the events by opening the file through the File menu. We are working on supporting VFS but it will be a while before it's available. Scott -----Original Message----- From: Amit Nigam [mailto:[EMAIL PROTECTED] Sent: Tue 8/24/2004 4:56 AM To: '[EMAIL PROTECTED]' Cc: Subject: chainsaw for viewing messages remotely?? Hi, I am exploring chainsaw v2 of log4j's latest development and my requirement is such that i want to view my log messages remotely, say at the client's end. Is there any way or configuration in chainsaw using which i can view my offline and real-time log-messages from a remote machine while they are getting generated on the server machine. I wonder if anyone has tried this. can anyone help me out? Regards, Amit --------------------------------------------------------------------- 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 may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- 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 may contain confidential and/or privileged information. If you are not the intended recipient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorized copying, disclosure or distribution of the material in this e-mail is strictly forbidden. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]