Hey guys, I am using jdk 1.4 logging tool for logging. Now I need to use chainsaw in order to analyze my log files.
I don't know where to start and what to do in order to view this log file through chainsaw.i have downloaded the chainsaw v2 tool. But am confused how do I set it to take in my jdk1.4 log file and give a GUI output. What and where do I need to make changes Do I need to change my logging.property file? If so how? Any help will be appreciated. Sarita Rana 678.728.7953 [EMAIL PROTECTED] [EMAIL PROTECTED] -----Original Message----- From: Scott Deboy [mailto:[EMAIL PROTECTED] Sent: Friday, October 08, 2004 4:24 PM To: Log4J Users List Subject: RE: SMTPAppender only for ERROR and FATAL? You write the evaluator yourself, include it in your classpath and specify it in the config file. Click on the link to TriggeringEventEvaluator in the SMTPAppender javadoc - that will explain. OK, here's the link: http://logging.apache.org/log4j/docs/api/org/apache/log4j/spi/Triggering EventEvaluator.html Your evaluator is called each time an event is processed by the appender to see if the event will trigger the send of the email. The body of your TriggeringEventEvaluator could have: return true; to have SMTPAppender send an email with every event evaluated by the evaluator. -----Original Message----- From: None None [mailto:[EMAIL PROTECTED] Sent: Fri 10/8/2004 1:00 PM To: [EMAIL PROTECTED] Cc: Subject: RE: SMTPAppender only for ERROR and FATAL? Sorry I dont want to be stupid and I dont want to get RTFM It's the first time I use log4j what class is this? Where do I get this evaluator class name? And what does it have to do with the fact that SMTP appender only sends if the level is ERROR or FATAL? Thanks >From: "Scott Deboy" <[EMAIL PROTECTED]> >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> >To: "Log4J Users List" <[EMAIL PROTECTED]> >Subject: RE: SMTPAppender only for ERROR and FATAL? >Date: Fri, 8 Oct 2004 12:48:31 -0700 > >The fully qualfied class name of an evaluator that you provide. > > >-----Original Message----- >From: None None [mailto:[EMAIL PROTECTED] >Sent: Fri 10/8/2004 12:43 PM >To: [EMAIL PROTECTED] >Cc: >Subject: RE: SMTPAppender only for ERROR and FATAL? >So according to that I have to.... > ><appender name="email" class="org.apache.log4j.net.SMTPAppender"> > <param name="SMTPHost" value="SECORD"/> > <param name="EvaluatorClass" value=""/> > <param name="From" value="Application"/> > <param name="To" value="[EMAIL PROTECTED]"/> > <param name="Subject" value="Information"/> > <layout class="org.apache.log4j.PatternLayout"> > <param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - %m%n"/> > </layout> ></appender> > >What do I put for the value? Thanks > >From: "Scott Deboy" <[EMAIL PROTECTED]> > >Reply-To: "Log4J Users List" <[EMAIL PROTECTED]> > >To: "Log4J Users List" <[EMAIL PROTECTED]> > >Subject: RE: SMTPAppender only for ERROR and FATAL? > >Date: Fri, 8 Oct 2004 12:27:01 -0700 > > > >Javadoc here: > >http://logging.apache.org/log4j/docs/api/org/apache/log4j/net/SMTPAppen der.html > > > >If you are not providing an EvaluatorClass param you are using the >default > >evaluator. > > > > > >-----Original Message----- > >From: None None [mailto:[EMAIL PROTECTED] > >Sent: Fri 10/8/2004 12:02 PM > >To: [EMAIL PROTECTED] > >Cc: > >Subject: SMTPAppender only for ERROR and FATAL? > >Am trying to set up a logger so I can send e-mails on speciffic events. > >Though it only seems an e-mail gets sent if the level is error, fatal and > >above. > > > >So I get my logger.... and call myLogger.info("bla"); I get no e-mail.... > >So then I change it to myLogger.fatal("bla"); and and I get an e-mail! > > > >Below is my config file > > > ><?xml version="1.0" encoding="UTF-8" ?> > ><!DOCTYPE log4j:configuration SYSTEM "log4j.dtd"> > > > ><log4j:configuration> > > <appender name="console" class="org.apache.log4j.ConsoleAppender"> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - >%m%n"/> > > </layout> > > </appender> > > <appender name="file" class="org.apache.log4j.RollingFileAppender"> > > <param name="File" value="C:\\Programming\\logs.txt"/> > > <param name="MaxFileSize" value="2KB"/> > > <param name="MaxBackupIndex" value="5"/> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - >%m%n"/> > > </layout> > > </appender> > > <appender name="email" class="org.apache.log4j.net.SMTPAppender"> > > <param name="SMTPHost" value="SECORD"/> > > <param name="From" value="Application"/> > > <param name="To" value="[EMAIL PROTECTED]"/> > > <param name="Subject" value="Information"/> > > <layout class="org.apache.log4j.PatternLayout"> > > <param name="ConversionPattern" value="%-4r %-5p [%t] %37c %3x - >%m%n"/> > > </layout> > > </appender> > > <root> > > <level value ="INFO"/> > > <appender-ref ref="email"/> > > </root> > > > ></log4j:configuration> > > > >_________________________________________________________________ > >Take charge with a pop-up guard built on patented Microsoft(r) SmartScreen > >Technology. > >http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&S U=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > > Start enjoying all the benefits of MSN(r) Premium right now and get the > >first two months FREE*. > > > > > >--------------------------------------------------------------------- > >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] > >_________________________________________________________________ >MSN(r) Calendar keeps you organized and takes the effort out of scheduling >get-togethers. >http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&S U=http://hotmail.com/enca&HL=Market_MSNIS_Taglines > Start enjoying all the benefits of MSN(r) Premium right now and get the >first two months FREE*. > > >--------------------------------------------------------------------- >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] _________________________________________________________________ MSN(r) Calendar keeps you organized and takes the effort out of scheduling get-togethers. http://join.msn.com/?pgmarket=en-ca&page=byoa/prem&xAPID=1994&DI=1034&SU =http://hotmail.com/enca&HL=Market_MSNIS_Taglines Start enjoying all the benefits of MSN(r) Premium right now and get the first two months FREE*. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] ***** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential, proprietary, and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from all computers. 113 --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
