OK, thanks a lot. now it's close to fun hunting through my logs finding bugs ;-)

the reasons it was not working for me at first were:
- incorrect timesampFormat (my fault)
- wrong filter expression (now i use an empty one) => no new tab was opened ?!?
- if you like to use chainsaw.xml you have to set a URL not a filename in app 
wide rpeferences
- the logfile was 32MB and so the whole application just fell asleep....

example of chainsaw.xml:

<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
  <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/"; 
debug="true"> 
    <plugin name="logFileReceiver" 
class="org.apache.log4j.varia.LogFilePatternReceiver"> 
      <param name="fileURL" value="file:///C:/path/to/my/file.log" /> 
      <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/>
      <param name="logFormat" value="TIMESTAMP [THREAD] LEVEL LOGGER METHOD 
MESSAGE"/>
      <param name="name" value="whatever" /> 
      <param name="tailing" value="false" />
    </plugin> 
    <root> 
      <level value="debug"/> 
    </root>
</log4j:configuration>

> -----Ursprüngliche Nachricht-----
> Von: Scott Deboy [mailto:[EMAIL PROTECTED]
> Gesendet: Donnerstag, 31. August 2006 16:05
> An: Log4J Users List
> Betreff: RE: chainsaw for non-xml files
> 
> 
> You can configure Chainsaw to use an 
> org.apache.log4j.varia.LogFilePatternReceiver to process 
> non-xml log files.  
> 
> There is also 
> org.apache.log4j.chainsaw.vfs.VFSLogFilePatternReceiver, 
> which extends LogFilePatternReceiver's capabilities by 
> supporting the file systems available via the Apache Jakarta 
> Commons VFS project (including SSH).
> 
> These are both available from the Web Start deploy of 
> Chainsaw, although you'll have to add the external jars 
> needed by the VFS receiver to the $user.dir/.chainsaw/plugins 
> directory (and bypass the security manager through Chainsaw' 
> app preferences).
> 
> You can view an example receiver configuration from 
> Chainsaw's Welcome tab.
> 
> 
> Scott Deboy
> COMOTIV SYSTEMS
> 111 SW Columbia Street Ste. 950
> Portland, OR  97201
> 
> Telephone:      503.224.7496
> Cell:           503.997.1367
> Fax:            503.222.0185
> 
> [EMAIL PROTECTED]
> 
> www.comotivsystems.com
> 
> 
> 
> -----Original Message-----
> From: Patrick Wyss [mailto:[EMAIL PROTECTED]
> Sent: Thu 8/31/2006 5:37 AM
> To: Log4J Users List
> Subject: chainsaw for non-xml files
>  
> is there any possibility to run chainsaw on non-xml logfiles?
> any plans to do implement something in this direction?
> without even taking a look into the source (shame on me) i 
> have the impression that with the ConversionPattern it should 
> be possible to do something...
> 
> i just think that the xml files are getting way to big =>  i 
> love logging *everything* ;-)
> 
> cheers
> patrick
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 



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

Reply via email to