Return-Path: Delivered-To: apmail-jakarta-log4j-user-archive@apache.org Received: (qmail 54815 invoked from network); 26 Jun 2002 09:44:58 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by 209.66.108.5 with SMTP; 26 Jun 2002 09:44:58 -0000 Received: (qmail 20031 invoked by uid 97); 26 Jun 2002 09:45:02 -0000 Delivered-To: qmlist-jakarta-archive-log4j-user@jakarta.apache.org Received: (qmail 20015 invoked by uid 97); 26 Jun 2002 09:45:01 -0000 Mailing-List: contact log4j-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@jakarta.apache.org Received: (qmail 20003 invoked by uid 98); 26 Jun 2002 09:45:01 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Message-Id: <5.1.0.14.0.20020626114255.02ce43a8@mail.qos.ch> X-Sender: ceki@mail.qos.ch X-Mailer: QUALCOMM Windows Eudora Version 5.1 Date: Wed, 26 Jun 2002 11:44:46 +0200 To: "Log4J Users List" , Log4J Users List From: Ceki =?iso-8859-1?Q?G=FClc=FC?= Subject: Re: Problems with SMTPAppender In-Reply-To: <10B96F9B1453D61191B400508B650D94017B99AC@ban03xbindge> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N X-Spam-Rating: 209.66.108.5 1.6.2 0/1000/N The triggering evaluator evaluates whether an email message should be sent or not. It does not influence whether an event is put on the cyclic buffer or not. If you want only ERROR messages or above, then you can set the Threshold of the SMTPAppender. At 13:35 26.06.2002 +0530, Kn, Guruprasad (MED) wrote: >Hi >I am using the SMTPAppender and I face the following problem. I have written >my own TriggeringEvaluator which restricts the number of mail that is sent >within a particular period as well as based on the Level(which anyway the >default evaluator also does). However I notice a strange problem >"The SMTPAppender appends the event irrespective of whether the evaluator >conditions are passed or not. So I get mails which has events that should >have been filtered through by the evaluator" >On closer look at the source code, I find that the event is put into the >Cyclic buffer even before the evaluator check is done in the void append() >function. >SO a scenario like this would be allowed assuming that the Level cut-off is >at ERROR >Log a INFO message - no mail immediately sent, but put into the buffer >Log a ERROR message - mail is sent but the contents of buffer is sent, this >means that the old INFO message is tagged along a ERROR message and sent. > >My question is : "Should not the message be put into cyclic buffer only if >the triggering conditions are met" > >I will be extremely thankful if someone could help me in this aspect > >Thanks and regards >Guru -- Ceki -- To unsubscribe, e-mail: For additional commands, e-mail: