[logback-dev] A smart SMTPAppender
Harinatarajan Gnanashekaran
hari.natraj at gmail.com
Mon Feb 15 22:08:38 UTC 2016
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 at qos.ch>
To: logback developers list <logback-dev at qos.ch>
Subject: Re: [logback-dev] A smart SMTPAppender
Message-ID: <56BB00F1.1070405 at 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
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/logback-dev/attachments/20160216/a6f7eb8c/attachment.html>
More information about the logback-dev
mailing list