I have a simple java project (maven). Which builds a jar and we execute the main method on it. But when I run mvn clean test
on the project I get a log line from log4j saying
INFO Log4j appears to be running in a Servlet environment, but there's no log4j-web module available. If you want better web container support, please add the log4j-web JAR to your web archive or server lib directory.
The log4j2.xml
file is in src/main/resources/log4j2.xml
.
Any ideas whats going on ?