I'm working on an XMLLogFileReceiver for Chainsaw. It's based on the
LogFilePatternReceiver with even less configuration required.

I've found that the tailing arrangement for displaying data as its added to
the log file isn't very robust. In a Windows environment with  the log file
located on a remote server (where log4net is used to generate the log),
log4net occasionally complains about the file being used by another process
when it tries to roll over to a new file.  I'm also finding that sometimes
chainsaw stops following the file.

I'm about to go over to Sun's Java site to see if I can find recommendations
on the best means to follow the file with the minimum impact.  Would anyone
here have any suggestions?

Mike Blake-Knox
email: [EMAIL PROTECTED]
TSYS Office: (706) 644-3643
cellphone: (706) 570-4641
 

> -----Original Message-----
> From: Scott Deboy [mailto:[EMAIL PROTECTED] 
> Sent: Tuesday, August 24, 2004 12:51 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]

Reply via email to