I have a simple java project (maven). What creates the jar, and we perform the main method. But when I run mvn clean testin the project, I get the log line from log4j saying
INFO Log4j appears to be running in a Servlet environment, but there 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 file log4j2.xmlis located at src/main/resources/log4j2.xml.
Any ideas on what's going on?
source
share