You are viewing a plain text version of this content. The canonical link for it is here.
Posted to log4j-user@logging.apache.org by Giancarlo V Martinez <gv...@us.ibm.com> on 2006/03/03 17:32:17 UTC
Need help with Chainsaw and VFSLogFilePatternReceiver
All,
I have done extensive searching on this topic and now I am at a dead end.
Just bear with me and I will tell you all the things I have tried.
For some reason I cannot setup a VFSLogFilePatternReceiver in Chainsaw. It
can never connect to the file.
I am on two windows servers, one running WAS with a file appender running,
and the other with Chainsaw using a VFSLogFilePatternReceiver. I can sftp
from the command line, on the server with chainsaw, so I know I have
network connectivity, and the file can be accessed by all.
I have downloaded all the necessary jar files. Here is a listing of my
chainsaw directory:
Directory of C:\tools\downloads\chainsaw
03/03/2006 09:58 AM <DIR> .
03/03/2006 09:58 AM <DIR> ..
03/03/2006 09:58 AM 401 chainsaw.bat
02/02/2006 06:22 PM 375 chainsaw.sh
02/02/2006 06:22 PM 25,317 commons-logging-api.jar
06/15/2004 09:29 PM 38,015 commons-logging.jar
02/02/2006 06:22 PM 310,823 commons-vfs-1.0-RC3.jar
03/02/2006 06:07 PM 905 configuration.xml
02/02/2006 06:22 PM 71,406 jakarta-oro-2.0.6.jar
03/03/2006 09:57 AM 118,732 jsch-0.1.25.jar
02/02/2006 06:22 PM 356,733 log4j-1.3alpha-7.jar
02/02/2006 06:22 PM 692,429 log4j-chainsaw-2.0alpha-1.jar
02/02/2006 06:22 PM 7,024 log4j-chainsaw-vfs.jar
02/02/2006 06:22 PM 29,254 log4j-db-1.3alpha-7.jar
02/02/2006 06:22 PM 13,894 log4j-jms-1.3alpha-7.jar
02/02/2006 06:22 PM 33,080 log4j-optional-1.3alpha-7.jar
02/02/2006 06:22 PM 35,028 log4j-oro-1.3alpha-7.jar
02/02/2006 06:22 PM 9,072 log4j-smtp-1.3alpha-7.jar
02/02/2006 06:22 PM 22,306 log4j-xml-1.3alpha-7.jar
02/02/2006 06:22 PM 265,396 xstream-1.1.2.jar
I have included the necessary jar files in the chainsaw classpath:
java -classpath commons-logging-api.jar;
commons-logging.jar;
commons-vfs-1.0-RC3.jar;
jsch-0.1.25.jar;
jakarta-oro-2.0.6.jar;
log4j-1.3alpha-7.jar;log4j-chainsaw-2.0
alpha-1.jar;log4j-chainsaw-vfs.jar;log4j-db-1.3alpha-7.jar;log4j-jms-1.3
alpha-7.jar;log4j-optional-1.3alpha-7.jar;log4j-oro-1.3
alpha-7.jar;log4j-smtp-1.3alpha-7.jar;log4j-xml-1.3
alpha-7.jar;xstream-1.1.2.jar org.apache.log4j.chainsaw.LogUI
And I have setup my chainsaw configuration per examples from previous
posts. Here is my chainsaw configuration.xml
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"
debug="true">
<appender name="A2" class="org.apache.log4j.ConsoleAppender">
<layout class="org.apache.log4j.SimpleLayout"/>
</appender>
<plugin name="VFSLogFileReceiver"
class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver">
<param name="fileURL"
value="sftp://user:pass@host:22/cygdrive/c/Apps/WebSphere/AppServer/profiles/AppSrv01/logs/server1/log.xml"/>
<param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
<param name="logFormat" value="TIMESTAMP LEVEL [LOGGER] MESSAGE"/>
<param name="name" value="sampleVFSLogFileReceiver"/>
<param name="tailing" value="true"/>
</plugin>
<root>
<level value="debug"/>
</root>
</log4j:configuration>
Anything I might have missed? In one post I read, can't remember which
one, I think I remember reading that if VFS is correctly configured in
Chainsaw a VFS tab should appear? Exactly where should that appear? On the
left hand side of chainsaw? I can now create a VFSLogFilePatternReceiver
inside of Chainsaw, by right-clicking and selecting create new recevier. A
selection which was not there before.
Any help from anyone would be great, even a "huh, no idea what is wrong"
would help me out.
Thank you,
Giancarlo V. Martinez
11501 Burnet Rd 902-4, B-020
Austin TX, 78758
Office: (512)-838-9489; T/L 678-9489; Fax: (512)-823-0035