title: Log4j 2 doesn't write to file
body: <p>Having the following config file:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;Configuration status="warn"&gt;
      &lt;Appenders&gt;
          &lt;Console name="Console" target="SYSTEM_OUT"&gt;
              &lt;PatternLayout pattern="[%d{HH:mm:ss.SSS} %-5level] %logger{36} - %msg%n"/&gt;
          &lt;/Console&gt;
          &lt;File name="File" fileName="error.log"&gt;
              &lt;PatternLayout pattern="[%d{ISO8601} %-5level] %logger{36} - %msg%n"/&gt;
          &lt;/File&gt;
      &lt;/Appenders&gt;
      &lt;Loggers&gt;
          &lt;Logger name="errors" level="error"&gt;
              &lt;AppenderRef ref="File"/&gt;
          &lt;/Logger&gt;
          &lt;Root level="all"&gt;
              &lt;AppenderRef ref="Console"/&gt;
          &lt;/Root&gt;
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>only writes (all) logging output to the console. I however had the intention to write anything above <code>error</code> to a file named <code>error.log</code> with a slightly different format. However, running my application results in everything being written to the console, leaving an empty file behind (which gets created, just not filled).</p>
  
  <p>Somehow it seems like the Root logger catches everything because I had also tried this:</p>
  
  <pre><code>&lt;Logger name="errors" level="error"&gt;
      &lt;AppenderRef ref="Console"/&gt;
  &lt;/Logger&gt;
  </code></pre>
  
  <p>which does not log twice. I'm out of ideas really, I even copied an example from the docs (<a href="http://logging.apache.org/log4j/2.x/manual/migration.html" rel="noreferrer">sample #2 from here</a>) and that aswell leaves an empty file.</p>