title: How to enable and disable log4Net log levels?
body: <p>I am trying to setup the log4net configuration in my Dot Net Core C# library. I have configured the following log levels. But I want to enable and disable the log levels independently.</p>
  <pre><code>   &lt;root&gt;
          &lt;level value=&quot;Info&quot; /&gt; 
          &lt;level value=&quot;Warn&quot; /&gt;
          &lt;level value=&quot;Error&quot; /&gt;
          &lt;level value=&quot;Fatal&quot; /&gt;
          &lt;level value=&quot;Debug&quot; /&gt;
  
          &lt;appender-ref ref=&quot;LogFileAppender&quot; /&gt;
     &lt;/root&gt;
  </code></pre>
  <p>For example, how can I disable and enable the Debug flag by setting it to true or false?
  Something like</p>
  <pre><code> &lt;level value=&quot;Debug&quot;  Enable = &quot;True&quot;/&gt;
  </code></pre>
  <p>I think there is some settings, but I don't remember. Thanks for your help to fix this issue.</p>