How do I replace the AsyncAppender with a FileAppender on JBoss?
Environment
- JBoss Enterprise Application Platform (EAP)
Issue
- How do I replace the AsyncAppender with a FileAppender in JBoss EAP?
Resolution
Use FileAppender (e.g. DailyRollingFileAppender) instead of AsyncAppender. For example, find this line in JBOSS_HOME/server/SERVERCONF/conf/jboss-log4j.xml:
<root>
<appender-ref ref="ASYNC"/>
</root>
and replace it with this:
<root>
<appender-ref ref="FILE"/>
</root>
Components
This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.