title: Why two Loggers do not split messages according to their levels in Log4j?
body: <p>I want to log all logger levels to a file (FATAL-> ALL) and simultaneousy show ERROR level and higher in the console. I'm using root logger to log all levels to a file and separate logger to log ERROR level to a console. My XML configuration file looks as follows:</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} [%t] %highlight{%level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=blue} %logger{36} - %msg%n" disableAnsi="false"/&gt;
          &lt;/Console&gt;
  
          &lt;File name="File" fileName="output.log" bufferedIO="true" &gt;
              &lt;PatternLayout
                      pattern="%d{HH:mm:ss.SSS} [%t] %highlight{%level}{FATAL=bg_red, ERROR=red, WARN=yellow, INFO=blue} %logger{36} - %msg%n"/&gt;
          &lt;/File&gt;
      &lt;/Appenders&gt;
  
      &lt;Loggers&gt;
          &lt;Root level="ALL"&gt;
              &lt;AppenderRef ref="File"/&gt;
          &lt;/Root&gt;
  
          &lt;Logger name="com.danielk" level="ERROR"&gt;
              &lt;AppenderRef ref="Console"/&gt;
          &lt;/Logger&gt;
  
      &lt;/Loggers&gt;
  &lt;/Configuration&gt;
  </code></pre>
  
  <p>I expected to have all levels of logging in the file and only "Error" and above level in the console but I have only "Error" levels on both (console and file):</p>
  
  <blockquote>
    <p>23:19:54.422 [main] ERROR com.danielk.Example - error error error from Example
    23:19:54.434 [main] ERROR com.danielk.Main - ERROR ERROR ERROR FROM MAIN</p>
  </blockquote>
  
  <p>Messages themselves are correcty build because when I set both loggers (Root and additional) to "ALL" level I can see all kind of messages (not only "Error" level).</p>
  
  <p>What should I do to split levels:</p>
  
  <ol>
  <li>File - all levels</li>
  <li>Console - Errors and above only?</li>
  </ol>