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]

Reply via email to