title: Log4j2 not logging for application deployed in tomcat
body: <p>Tomcat version: 8.0.30</p>
  
  <p>I have a Java application that uses Log4j2 deployed in Tomcat 8 on Linux (Centos 7), and for some reason, nothing is being written to the application logs. I know however that my configuration should work, because it works perfectly on a different server. </p>
  
  <p>The only difference I've noticed between the server that works and the one that doesn't is that in <code>catalina.out</code> on server start, I see the following warning on the server that doesn't work:</p>
  
  <pre><code>log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.StandardServletEnvironment). 
  </code></pre>
  
  <p>I've tried researching this issue but haven't been able to resolve that warning.</p>
  
  <p>Not sure if this matters (because this works on other servers), but I have the following log4j2 dependencies in my pom.xml:</p>
  
  <ul>
  <li>log4j-api</li>
  <li>log4j-core</li>
  <li>log4j-1.2-api</li>
  <li>log4j-jcl</li>
  <li>log4j-slf4j-impl</li>
  </ul>