What happens to logging events when the AsyncAppender buffer fills in non-blocking mode?

Solution Verified - Updated -

Issue

  • We are using the AsyncAppender and have its blocking mode disabled:
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
  <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  <param name="Threshold" value="INFO"/>
  <param name="Blocking" value="false"/> 
  <appender-ref ref="FILE"/>
</appender>
  • What will then happen if a thread tries to log something while the AsyncAppender's buffer is full?

Environment

  • JBoss Enterprise Application Platform
  • log4j

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content