Why not do this with Filters? In fact, doesn't the SMTP appender have something like this already?
--- regards --- Larry
At 11:04 AM 10/15/03, you wrote:
To Log4J Team:
I would like to recommend an enhancement to the Log4J toolkit. There are applications in which it is desirable to put a ceiling on the number of times any given message is reported. Parsers are an excellent example, in which warnings of the type "Token XXXXXX not found in record" really only need to be reported once and not (possibly) thousands of times in a file that obviously doesn't contain that token. I envision the configuration file allowing one to set the Logger with a property of MAX_REPORTS which allows one to place this ceiling on the number of times a message is passed to the Appender object. I recognize that this would slightly hurt the performance as a comparison to a private integer variable would have to be made.
Just a suggestion. Thanx for listening.
-Regards, Steve Widom
Steve Widom Advanced Technology Group Manager AmerisourceBergen Specialty Group Phone (972) 490-5551 www.amerisourcebergen.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------
Larry Young
The Dalmatian Group
www.dalmatian.com
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]