You can't use file-open or drag-and-drop to process a log4j xml configuration file - file-open and drag-and-drop allow you to open a log file saved using XMLLayout.
Instead: Select the View menu, then the Show Application wide preferences menu. At the bottom of this configuration panel, you'll see a box to specify an 'Automatic configuration URL'. In the box, enter the URL to your log4j xml configuration file, for example: file:///c:/log4j/chainsaw-config.xml Note: if your log file doesn't format log entries as you have specified in the 'logFormat' section of this config file, Chainsaw won't be able to display the events. FYI, LogFilePatternReceiver can parse exceptions correctly and display them in Chainsaw. Scott -----Original Message----- From: Legolas Woodland [mailto:[EMAIL PROTECTED] Sent: Tue 1/3/2006 8:48 AM To: Log4J Users List Subject: Re: [chainsaw] can some one give me a sample XML file wich feed chainsaw with a local log file? 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
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]