I am using log4j in one of my projects and was hoping to be able to read this 
file with chainsaw, however after setting up a receiver for my log file within 
chainsaw, I don't get a tab to view the results.
I have attached a sample log file to this e-mail.
I have also tried using the attached config file.
I am creating a receiver for the file using the following parameters;

fileURL:  file:///c:/events.log
filterExpression:  %r [%t] %-5p %c %x - %m%n
logFormat:  PROP[RELATIVETIME) [THREAD] LEVEL LOGGER * - MESSAGE
name:  TGV
tailing:  false
timestampFormat:  yyyy-MM-d HH:mm:ss,SSS


In the Chainsaw log tab I am seeing messages that my filter expression is 
incorrect.

*****************************************************************************
The information contained in this message, including attachments, may contain 
privileged or confidential information that is intended to be delivered only to 
the person identified above. If you are not the intended recipient, or the 
person responsible for delivering this message to the intended recipient, 
ALLTEL requests that you immediately notify the sender and asks that you do not 
read the message or its attachments, and that you delete them without copying 
or sending them to anyone else. 


<?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="LogFileReceiver" class="org.apache.log4j.varia.LogFilePatternReceiver">
     <param name="fileURL" value="file:///c:/events.log"/>
     <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/> 
     <param name="logFormat" value="PROP[RELATIVETIME) [THREAD] LEVEL LOGGER * - MESSAGE"/> 
     <param name="name" value="sampleLogFilePatternReceiver"/>
     <param name="tailing" value="true"/> 
   </plugin>

   <root>
      <level value="debug"/>
   </root>
</log4j:configuration>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to