We haven’t found a way. We coded it out using persisted queue when we wrote our own (<a href="http://logz.io">logz.io</a>) - it’s available on GitHub <br><div class="gmail_quote"><div dir="ltr">On Mon, 23 Oct 2017 at 17:13 Gérald Quintana <<a href="mailto:gerald.quintana@gmail.com">gerald.quintana@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div>I am using an appender which becomes slow at times (in case of network congestion).<br></div><br></div><div>To avoid impacting application performance with this "slow" appender, I wrapped it in an AsyncAppender. So far, so good.<br><br></div>When AsyncAppender queue is full, logging events are dropped.<br></div>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.<br><br></div>I looked at AsyncAppenderBase and AsyncDisruptorAppender, but there are a lot of private methods.<br></div><br>How would you do an async appender that overflows to local disk when in memory queue is nearly full?<br><br></div>Thanks for your help<br><div><br></div></div>
_______________________________________________<br>
slf4j-user mailing list<br>
<a href="mailto:slf4j-user@qos.ch" target="_blank">slf4j-user@qos.ch</a><br>
<a href="http://mailman.qos.ch/mailman/listinfo/slf4j-user" rel="noreferrer" target="_blank">http://mailman.qos.ch/mailman/listinfo/slf4j-user</a></blockquote></div>