title: How do I configure log4net so that log.IsDebugEnabled is true?
body: <p>I am trying to use log4net in an ASP.NET application with Visual Studio 2005. I have declared an instance of the logger like so:</p>
  
  <pre><code>Private Shared ReadOnly log As ILog = LogManager.GetLogger("")
  </code></pre>
  
  <p>I am trying to use it in the following manner:</p>
  
  <pre><code>If log.IsDebugEnabled Then
     log.Debug("Integration Services Constructed")
  End If
  </code></pre>
  
  <p>Here is my configuration:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;log4net&gt;
  
      &lt;root&gt;
          &lt;level value="DEBUG" /&gt;
          &lt;appender-ref ref="RollingFileAppender" /&gt;
      &lt;/root&gt;
  
      &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
          &lt;file value="..\\logs\\logfile.log"/&gt;
          &lt;appendToFile value="true"/&gt;
          &lt;rollingStyle value="Size"/&gt;
          &lt;maxSizeRollBackups value="10"/&gt;
          &lt;maximumFileSize value="1MB"/&gt;
          &lt;staticLogFileName value="true"/&gt;
          &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline"/&gt;
          &lt;/layout&gt;
          &lt;filter type="log4net.Filter.LevelRangeFilter"&gt;
              &lt;param name="LevelMin" value="DEBUG" /&gt;
              &lt;param name="LevelMax" value="FATAL" /&gt;
          &lt;/filter&gt;
      &lt;/appender&gt;
  
  &lt;/log4net&gt;
  </code></pre>
  
  <p>Unfortunately, <code>log.IsDebugEnabled</code> is always false. <br /> How do I configure log4net so that I can log only debug messages?</p>