logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ricardo Moral <ricardo_mo...@yahoo.com>
Subject Re: What is the purpose of TriggeringEventEvaluator?
Date Mon, 11 Nov 2002 13:14:39 GMT
They are diferent things. The filter will determine
wich logging events will be logged. The triggering
evaluator will decide when is time to send a mail.
This doesn't mean that the logging event will be
logged or not. For example if the triggering event
evaluator returns false this means that the appender
will not send a email but the logging event is still
stored in a internal buffer and will be sent later
when another event returns true for the triggering
event evaluator.

--- Daniel.Hannum@smed.com wrote:
> TriggeringEventEvaluator is used by SMTP to decide
> when to send mail. Why
> don't we just use a custom filter (an implementor of
> Filter) for that? It
> seems that both interfaces are very similar, so it's
> not clear why I have a
> choice between the two. Is there extra functionality
> in
> TriggeringEventEvaluator that I don't see? Because
> as it stands now,
> SMTPAppender would work just as well with a custom
> filter attached, or even
> simply by setting the appender's threshold to ERROR.
> Why the added complexity?
> dan
> This message and any included attachments are from
> Siemens Medical Solutions 
> Health Services Corporation and are intended only
> for the addressee(s).  
> The information contained herein may include trade
> secrets or privileged or 
> otherwise confidential information.  Unauthorized
> review, forwarding, printing, 
> copying, distributing, or using such information is
> strictly prohibited and may 
> be unlawful.  If you received this message in error,
> or have reason to believe 
> you are not authorized to receive it, please
> promptly delete this message and 
> notify the sender by e-mail with a copy to
> CSOffice@smed.com.  Thank you
> --
> To unsubscribe, e-mail:  
> <mailto:log4j-dev-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:log4j-dev-help@jakarta.apache.org>

Do you Yahoo!?
U2 on LAUNCH - Exclusive greatest hits videos

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

View raw message