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

GĂ©rald Quintana gerald.quintana at gmail.com
Mon Oct 23 16:13:19 CEST 2017


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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.qos.ch/pipermail/slf4j-user/attachments/20171023/1f711cf8/attachment.html>


More information about the slf4j-user mailing list