Hi folks!

I would like to read, display and do a near-real-time tail of a remote log
file stored in a Tomcat server using Chainsaw (the files shall be retrieved
using HTTP GET).

I have been able to configure the VFSLogFilePatternReceiver , install all
3rd party libraries etc... and once I launch Chainsaw I can see the new
receiver tab and the first bunch of messages of my remote log file but even
though I have set the "tailing" flag to "true" the file is not refreshed.

The last messages I have in my display are:

Releasing connection back to connection manager
Freeing connection, hostConfig=HostConfiguration[host=http://remotehost:8080
]
Adding connection at: 12556119101
Notifying no-one, there are no waiting threads

My configuration file is the following one:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration >
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/";
debug="true">

   <!-- REMOTE FILE RECEIVER -->
   <plugin name="VFSLogFilePatternReceiver"
class="org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver">
     <param name="fileURL" value="http://remotehost:8080/logs/my.log"/>
     <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
     <param name="logFormat" value="TIMESTAMP LEVEL [LOGGER] MESSAGE"/>
     <!--<param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER
(FILE:LINE) - MESSAGE"/>-->
     <param name="name" value="ExampleHttpReceiver"/>
     <param name="promptForUserInfo" value="false"/>
     <param name="tailing" value="true"/>
   </plugin>
   <root>
      <level value="DEBUG"/>
   </root>
   <logger name="org.apache.log4j">
      <level value="OFF"/>
   </logger>
</log4j:configuration>

I have the following jar files in my "$HOME/.chainsaw/plugins/" folder:

commons-logging-1.1.1.jar
commons-vfs-1.0.jar
log4j-chainsaw-vfs.jar

Is there anything else I have missed in my installation?
Does VFS support HTTP GET remote files retrieval with refreshing?

Thanks in advance,

e

Reply via email to