title: Log4j2 creates log file but doesn't write to it
body: <p>I'm using Tomcat 8.0.3 and log4j 2.0-rc1 to deploy a GWT application (servlet 2.5).</p>
  
  <p>I believe I fixed the usual log configuration errors, but still nothing is logged to the console or file.</p>
  
  <p>Head of my <strong>web.xml</strong>:</p>
  
  <pre><code>&lt;listener&gt;
      &lt;listener-class&gt;org.apache.logging.log4j.core.web.Log4jServletContextListener&lt;/listener-class&gt;
  &lt;/listener&gt;
  
  &lt;filter&gt;
      &lt;filter-name&gt;log4jServletFilter&lt;/filter-name&gt;
      &lt;filter-class&gt;org.apache.logging.log4j.core.web.Log4jServletFilter&lt;/filter-class&gt;
  &lt;/filter&gt;
  
  &lt;context-param&gt;
      &lt;param-name&gt;log4jConfiguration&lt;/param-name&gt;
      &lt;param-value&gt;file:///C:/Users/name/Desktop/log4j2.xml&lt;/param-value&gt;
  &lt;/context-param&gt;
  
  &lt;filter-mapping&gt;
      &lt;filter-name&gt;log4jServletFilter&lt;/filter-name&gt;
      &lt;url-pattern&gt;/*&lt;/url-pattern&gt;
      &lt;dispatcher&gt;REQUEST&lt;/dispatcher&gt;
      &lt;dispatcher&gt;FORWARD&lt;/dispatcher&gt;
      &lt;dispatcher&gt;INCLUDE&lt;/dispatcher&gt;
      &lt;dispatcher&gt;ERROR&lt;/dispatcher&gt;
  &lt;/filter-mapping&gt;
  </code></pre>
  
  <p>This is the <strong>log4j2.xml</strong> configuration:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="TRACE"&gt;
      &lt;Appenders&gt;
          &lt;Console name="Console" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="[%p] %c{1}: %m%n"/&gt;
          &lt;/Console&gt;
          &lt;File name="infoFile" fileName="${sys:catalina.home}/logs/info.log" &gt;
              &lt;PatternLayout pattern="[%p] %c{1}: %m%n"/&gt;
          &lt;/File&gt;
      &lt;/Appenders&gt;
  
      &lt;Loggers&gt;
          &lt;Root level="info"&gt;
              &lt;Appender-Ref ref="Console"/&gt;
              &lt;Appender-Ref ref="infoFile"/&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>I added both the log4j2 api and core to my Maven dependencies and I can see them exploded in <code>WEB-INF\classes\</code>. I've also removed them from the <code>skipJar</code> list in catalina.properties.</p>
  
  <p>When the war is deployed, no errors or warnings are thrown in the localhost or catalina log. This is the localhost log: </p>
  
  <pre><code>INFO  ContextListener: contextInitialized()
  INFO  SessionListener: contextInitialized()
  INFO  Log4jServletContextListener ensuring that Log4j starts up properly.
  INFO  Log4jServletFilter initialized.
  </code></pre>
  
  <p>The strange thing is that the <strong>info.log</strong> file is created, but never written to.<br>
  I'm also using Hibernate whose logs do show up in the console, could this be the problem?</p>
  
  <p>Finally, this is how I'm using the logger:</p>
  
  <pre><code>import org.apache.logging.log4j.LogManager;
  import org.apache.logging.log4j.Logger;
  
  private static final Logger LOG = LogManager.getLogger(MyClass.class.getName());
  
  public void myMethod() {
      LOG.info("Logging some message");
  }
  </code></pre>
  
  <p>(The log4j2 config file is temporarily on my desktop because it seems that I can't use spaces in the path)</p>