No appenders are available for AsyncAppender Async

No appenders are available for AsyncAppender Async

If you are apache log4j for logging and getting below exception which running the code:

Solution: There could multiple reason this exception occurs. Below are some:

  • There are duplicate log4j configuration in the project or inside the dependent jar you are using
  • No appenders added in log4j file
  • If appenders are added correctly then two or more log4j configuration are clashing

In my case, this was happening due to two log4j2.xml file was configured. One was inside my main project and other was coming from dependencies jar I download from other project.

For more information please visit Log4j details documentation here

Leave a Reply

Your email address will not be published. Required fields are marked *

I am not Robot *