Howdy,
You could write a TriggeringEventEvaluator that keeps a history of
logging events and consults it when deciding whether to pass or fail the
current event.

I'm not aware of other methods currently built-in to log4j, because this
request is against the spirit of logging, which is no dropped messages.
You're better off coding your system to log errors once.

Yoav Shapira
Millennium ChemInformatics


>-----Original Message-----
>From: Raziel Steinmetz [mailto:[EMAIL PROTECTED]
>Sent: Tuesday, January 06, 2004 12:02 PM
>To: [EMAIL PROTECTED]
>Subject: suppressing messages
>
>Hello,
>
>Is there a way to suppress logging messages ? for example I setup an
SMTP
>Appender to email me any error and fatal messages but sometimes the
same
>error can occur a few times per second and jam my mail box. I'm looking
for
>a way to set log4j to only send me the first message and then wait X
amount
>of time before resending the same error message.
>
>Any help is appreciated.
>Raz.
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: [EMAIL PROTECTED]
>For additional commands, e-mail: [EMAIL PROTECTED]




This e-mail, including any attachments, is a confidential business communication, and 
may contain information that is confidential, proprietary and/or privileged.  This 
e-mail is intended only for the individual(s) to whom it is addressed, and may not be 
saved, copied, printed, disclosed or used by anyone else.  If you are not the(an) 
intended recipient, please immediately delete this e-mail from your computer system 
and notify the sender.  Thank you.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to