logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ceki Gülcü <c...@qos.ch>
Subject Re: Problems with SMTPAppender
Date Wed, 26 Jun 2002 09:44:46 GMT

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:
>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()
>SO a scenario like this would be allowed assuming that the Level cut-off is
>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


To unsubscribe, e-mail:   <mailto:log4j-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:log4j-user-help@jakarta.apache.org>

View raw message