Scott Deboy wrote:
There is a sample xml configuration file available from inside Chainsaw:
- Start Chainsaw v2
- Select the 'Welcome' tab
- The 'Welcome' tab has its own toolbar.  Select the 'View example receiver 
configuration' button on that toolbar.

Again, you can also view the JavaDoc from inside Chainsaw in order to help you 
understand what parameters must be passed in: help menu, receiver javadoc

Scott

Thank you for help , i find The Sample xml configuration.
and i made my own configuration file.
here is my configuration file content.
--------------
<?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:///F:/creator2/SunAppServer8/domains/creator/logs/server.log"/>
    <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
    <param name="logFormat" value="TIMESTAMP LEVEL [LOGGER] MESSAGE"/>
    <param name="name" value="sampleLogFileReceiver"/>
    <param name="tailing" value="true"/>
  </plugin>
  <root>
     <level value="info"/>
  </root>
</log4j:configuration>
-------------
log file is exactly in the following path :
*F:/creator2/SunAppServer8/domains/creator/logs/server.log
*the problem is that Chansaw does not show log file content after i open the configuration file by mene , drag drop.

for providing more information , here is some content of my log file :



[#|2006-01-03T14:54:57.312+0330|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=42;|#startElement: field
|#]

[#|2006-01-03T14:54:57.328+0330|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=42;|#startElement: bind-xml
|#]

[#|2006-01-03T14:54:57.328+0330|INFO|sun-appserver-pe8.1_02|javax.enterprise.system.stream.out|_ThreadID=42;|#endElement: bind-xml
|#]



as you know log file may contain some Exception details too.
what is my mistake that Chainsaw does not shows the error log in its viewer ?

Thanks for your help




Reply via email to