[slf4j-user] Async appender with fallback appender when full

Asaf Mesika asaf.mesika at gmail.com
Wed Oct 25 06:56:51 CEST 2017


We haven’t found a way. We coded it out using persisted queue when we wrote
our own (logz.io) - it’s available on GitHub
On Mon, 23 Oct 2017 at 17:13 Gérald Quintana <gerald.quintana at gmail.com>
wrote:

> I am using an appender which becomes slow at times (in case of network
> congestion).
>
> To avoid impacting application performance with this "slow" appender, I
> wrapped it in an AsyncAppender. So far, so good.
>
> When AsyncAppender queue is full, logging events are dropped.
> In such an emergency situation, I'd like to route events to a local file
> appender (supposed to be fast), even if writes are not async anymore.
>
> I looked at AsyncAppenderBase and AsyncDisruptorAppender, but there are a
> lot of private methods.
>
> How would you do an async appender that overflows to local disk when in
> memory queue is nearly full?
>
> Thanks for your help
>
> _______________________________________________
> slf4j-user mailing list
> slf4j-user at qos.ch
> http://mailman.qos.ch/mailman/listinfo/slf4j-user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20171025/bcc74f6f/attachment.html>


More information about the slf4j-user mailing list