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.

--- [EMAIL PROTECTED] 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
> [EMAIL PROTECTED]  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
http://launch.yahoo.com/u2

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

Reply via email to