Re: [logback-dev] A smart SMTPAppender

Thanks Ceki. I had a look at the EventEvaluator interface and it does ease my work a lot. * I would like to set the footer to the exception with the summary(like the number of times an exception has occurred). I am not sure what the right place to add this logic. I am not sure if I need to override ch.qos.logback.core.net.SMTPAppenderBase#append or is there an easier way to acheive the same. * Also, I would like to configure the time after which duplicate errors/exceptions are reported again. What is the recommended approach to put in the configuration details and best way to read it in the eventEvaluator? In the worst case scenario, I can always use a properties reader. Thanks, Hari Date: Wed, 10 Feb 2016 10:20:49 +0100 From: Ceki Gulcu <ceki@qos.ch> To: logback developers list <logback-dev@qos.ch> Subject: Re: [logback-dev] A smart SMTPAppender Message-ID: <56BB00F1.1070405@qos.ch> Content-Type: text/plain; charset=utf-8; format=flowed Hi Hari, The eventEvaluator object in SMTPAppender is responsible for determining when messages are output. You can write an eventEvaluator which is time sensitive. I hope this helps, -- Ceki On 2/10/2016 5:46, Harinatarajan Gnanashekaran wrote:
Hi,
I am looking for a SMTPAppender that mails only unique exceptions/errors every n minutes. While I can develop this by extending the existing framework, I was wondering if this is available in logback(or other logging frameworks).
Thanks, Hari
participants (1)
-
Harinatarajan Gnanashekaran