Log4j2: no log4j-web module available

The status="info" at the beginning of the configuration file is for internal log4j2 debug messages. If you set it to trace you will see details on how log4j2 is configured.

That has nothing to do with your application logging though. You say you are able to output debug messages, I assume that mean that the logging itself works as expected (If there's a problem there then please show your full configuration. )


At first, I thought the problem was because I have servlet-api jar in my classpath, which I need, but removing that did not fix the problem, for me. In the end, all I had to do was just add the log4 web jar file from mvnrepository to your classpath and you're set!

Tags:

Java

Log4J

Log4J2