There was a typo there, but I'd use a config file instead. Here's a chainsaw config xml file that works:
<?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE log4j:configuration > <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:/events.txt"/> <param name="timestampFormat" value="yyyy-MM-dd HH:mm:ss,SSS"/> <param name="logFormat" value="TIMESTAMP LEVEL*(THREAD) [CLASS] MESSAGE"/> <param name="name" value="sampleLogFileReceiver"/> <param name="tailing" value="true"/> </plugin> <root> <level value="debug"/> </root> </log4j:configuration> And here are some events it can process: 2006-03-30 09:52:09,120 INFO ([impl:3]_3:) [ Factory] info message 2006-03-30 09:52:09,120 DEBUG ([impl:3]_3:) [ Strategy] debug message 2006-03-30 09:52:09,322 ERROR (ulerThread:) [ ErrorLogger] error message. Specify the xml file in the 'automatic configuration url' box. Good luck You can also turn on your java console which may show an exception. Scott Deboy Principal Engineer 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 3:27 PM To: [email protected] Subject: RE: Chainsaw doesn't show receiver tab for LogFilePatternReceiver I started Chainsaw, and manually created the receiver (this time leaving the filterExpression blank). I get a message saying that my reciver started ("TGV started!") in the chainsaw log, but I never get a tab created at the top. I have saved the events and attached them to this e-mail. You can see in the file that it did start; <log4j:message><![CDATA[TGV started!]]></log4j:message> But I never get a tab for my reciver at the top. -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 4:38 PM To: Log4J Users List Subject: RE: Chainsaw doesn't show receiver tab for LogFilePatternReceiver Your xml config file looks correct. If you're building a receiver config by hand, filterExpression should be an expression using Chainsaw's expression syntax - it will only process events in the file matching the expression, like LEVEL > WARN (see the tutorial for more info). The chainsaw-log tab should have information about why the receiver is not processing events. Can you provide a few sample events? Scott Deboy Principal Engineer 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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 1:59 PM To: [email protected] Subject: Chainsaw doesn't show receiver tab for LogFilePatternReceiver 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ************************************************************************ ***** 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. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
