logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <Yoav.Shap...@mpi.com>
Subject RE: suppressing messages
Date Tue, 06 Jan 2004 17:02:00 GMT

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:rsteinmetz@ibasis.net]
>Sent: Tuesday, January 06, 2004 12:02 PM
>To: log4j-user@logging.apache.org
>Subject: suppressing messages
>Is there a way to suppress logging messages ? for example I setup an
>Appender to email me any error and fatal messages but sometimes the
>error can occur a few times per second and jam my mail box. I'm looking
>a way to set log4j to only send me the first message and then wait X
>of time before resending the same error message.
>Any help is appreciated.
>To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
>For additional commands, e-mail: log4j-user-help@logging.apache.org

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: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org

View raw message