[logback-user] Limiting events to one thread in email

Ceki Gulcu ceki at qos.ch
Tue Mar 1 10:31:09 CET 2011


SMTPAppender maintains a distinct cyclic buffer for each distinct value 
returned by the discriminator. Buffers unused for 30 minutes are 
automatically discarded.

So contrary to your assumption, there would be one buffer per thread.

HTH,
--
Ceki

On 01.03.2011 10:10, Benoit Xhenseval wrote:
> Definitely pushing us in the right direction, thanks.
>
> Question remain however is that, unless I am mistaken, the cyclic
> buffer would only contain X entries in total and not for each thread.
> So if a thread was very verbose and the other one, the one causing the
> error and email, it would not see any entries for that thread in the
> buffer.
>
> How would you keep a cyclic buffer per thread?
>
> The idea is to get X events for the thread causing the error
>
> Thanks
>
> B
>





More information about the Logback-user mailing list