Never mind, I figure it out. Thierry
-----Original Message----- From: Thierry Lam Sent: Friday, April 22, 2005 9:36 AM To: Log4J Users List Subject: RE: Help with Chainsaw Is there a manual or faq which explains how to write my own xml file? I can't find one anywhere. I'm currently working on windows and path names are usually like the following: C:\jboss\server\server.log The example you gave me is using slash(/): <param name="fileURL" value="file:///c:/jboss/server/default/log/server.log" /> What is the equivalent of the above in backslash(\)? Thanks Thierry -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Thursday, April 21, 2005 6:19 PM To: Log4J Users List Subject: RE: Help with Chainsaw 1. Chainsaw can tail your log files. 2. Your log file can have any name - the only requirement is that it is accessible from a URL (file:// or http:// etc.) Here are the steps to tail your log file from Chainsaw. 1. Save the contents of the XML file included below to your file system (example: root of C drive as chainsawreceiver.xml) 2. Change the config file's appropriate settings based on your file name and log format. For more info on logFormat options see http://cvs.apache.org/viewcvs.cgi/logging-log4j/src/java/org/apache/log4 j/varia/LogFilePatternReceiver.java?rev=1.24&view=markup (step 3 etc. is below) Here is an example receiver config that will process files from Jboss. Here are some example records: 2005-03-04 16:06:17,226 DEBUG [my.logger.name] Some log msg 1 2005-03-04 16:06:18,226 DEBUG [my.logger.name] Some log msg 2 2005-03-04 16:06:19,226 DEBUG [my.logger.name] Some log msg 3 Here is the Chainsaw config file that can read these entries from the c:\jboss\server\default\log\server.log file: -------------------- <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="true"> <plugin name="jboss" class="org.apache.log4j.varia.LogFilePatternReceiver"> <param name="fileURL" value="file:///c:/jboss/server/default/log/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="alpha-jboss" /> <param name="tailing" value="true" /> </plugin> <root> <level value="debug"/> </root> </log4j:configuration> -------------------- 3. Once you've modified the file, Launch Chainsaw via Web Start from this page: http://logging.apache.org/log4j/docs/chainsaw.html - the 'launch now' link. 4. When it starts, say 'no' or 'ok' to whatever boxes come up. 5. Select the 'view-show application wide preferences' menu. 6. In the bottom field (automatic configuration url), enter the URL to your config file (example: file:///c:/chainsawconfig.xml) 7. Select OK 8. Restart Chainsaw The file should load in a new tab after a few seconds. -----Original Message----- From: Thierry Lam [mailto:[EMAIL PROTECTED] Sent: Thu 4/21/2005 1:33 PM To: [email protected] Cc: Subject: Help with Chainsaw I'm currently using log4cxx and have somehow successfully produced decent log messages. 1) Can I use Chainsaw to see my logs? 2) What should the extension of my configuration file look like? 3) What should I do to see my logs on Chainsaw? Thanks Thierry --------------------------------------------------------------------- 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]
