I have a web application, included log4j-api-2.3, log4j-core-2.3 and log4j-web-2.3 and placed a log4j2.xml file in the WEB-INF folder.
On application startup I receive the following message:
ERROR StatusLogger No Log4j context configuration provided. This is very unusual.
ERROR StatusLogger No log4j2 configuration file found. Using default configuration: logging only errors to the console.
When I add
to my web.xml the error notification disappears.
According to the documentation at http://logging.apache.org/log4j/2.x/manual/webapp.html Log4J2 should search a file starting with log4j2 in the WEB-INF folder if no context-param is specified.
It seems, this does not happen.