title: How to configure log4j2's additivity to respect parent's level?
body: <p>I think this code explains well enough what I'm trying to do</p>
  
  <pre class="lang-java prettyprint-override"><code>package us.benanderson;
  
  public class MyClass {
  
    private static final Logger LOG = LogManager.getLogger(MyClass.class);
    ...
      // within a method
      LOG.debug("only output to appFile");
      LOG.error("output to both appFile and errorFile");
  </code></pre>
  
  <p>This is what I'd guess should be my config</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;Loggers&gt;
      &lt;Logger name="us.benanderson" level="debug" additivity="true"&gt;
          &lt;AppenderRef ref="appFile" /&gt;
      &lt;/Logger&gt;
  
      &lt;Root level="error"&gt;
          &lt;AppenderRef ref="errorFile" /&gt;
      &lt;/Root&gt;
  &lt;/Loggers&gt;
  </code></pre>
  
  <p>However, I'm finding that when additivity="true", debug messages are also output to errorFile.  When additivity="false" nothing is output to errorFile.  Is there any way to do what I'm trying to do?</p>