Should we use asynchronous logging with a Log4j File appender
Issue
My applications generate heaps of file logging. I'm wondering if enabling asynchronously file logging will have performance impact?
<!-- Buffer events and log them asynchronously -->
<appender name="ASYNC" class="org.apache.log4j.AsyncAppender">
<errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
<appender-ref ref="FILE"/>
</appender>
Environment
- Log4j
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.