title: Why are all my log4net levels false?
body: <p>I'm using log4net in my ASP.NET MVC3 project, but all logging properties such as <code>IsDebugEnabled</code> == false</p>
  
  <p>In my AssemblyInfo I have:</p>
  
  <pre><code>[assembly: XmlConfigurator(Watch = true)]
  </code></pre>
  
  <p>In my log class I have</p>
  
  <pre><code>public Log4NetLogger()
  {
      log4net.Config.XmlConfigurator.Configure();
      Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  }
  </code></pre>
  
  <p>My related config stuff in Web.Config is:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;!--
    For more information on how to configure your ASP.NET application, please visit
    http://go.microsoft.com/fwlink/?LinkId=152368
    --&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;sectionGroup name="applicationSettings" type="System.Configuration.ApplicationSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089"&gt;
        &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" requirePermission="false"/&gt;
         &lt;/sectionGroup&gt;
    &lt;/configSections&gt;
  
      &lt;log4net debug="false"&gt;
        &lt;appender name="AdoNetAppender" type="log4net.Appender.AdoNetAppender"&gt;
          &lt;bufferSize value="100" /&gt;
          &lt;connectionType value="System.Data.SqlClient.SqlConnection, System.Data, Version=1.0.3300.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" /&gt;
          &lt;connectionString value="{removed}" /&gt;
          &lt;commandText value="INSERT INTO Logging ([Date],[Thread],[Level],[Logger],[Message],[Exception]) VALUES (@log_date, @thread, @log_level, @logger, @message, @exception)" /&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@log_date" /&gt;
            &lt;dbType value="DateTime" /&gt;
            &lt;layout type="log4net.Layout.RawTimeStampLayout" /&gt;
          &lt;/parameter&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@thread" /&gt;
            &lt;dbType value="String" /&gt;
            &lt;size value="255" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%thread" /&gt;
            &lt;/layout&gt;
          &lt;/parameter&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@log_level" /&gt;
            &lt;dbType value="String" /&gt;
            &lt;size value="50" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%level" /&gt;
            &lt;/layout&gt;
          &lt;/parameter&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@logger" /&gt;
            &lt;dbType value="String" /&gt;
            &lt;size value="255" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%logger" /&gt;
            &lt;/layout&gt;
          &lt;/parameter&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@message" /&gt;
            &lt;dbType value="String" /&gt;
            &lt;size value="4000" /&gt;
            &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%message" /&gt;
            &lt;/layout&gt;
          &lt;/parameter&gt;
          &lt;parameter&gt;
            &lt;parameterName value="@exception" /&gt;
            &lt;dbType value="String" /&gt;
            &lt;size value="2000" /&gt;
            &lt;layout type="log4net.Layout.ExceptionLayout" /&gt;
          &lt;/parameter&gt;
        &lt;/appender&gt;
        &lt;!--Possible levels:--&gt;
        &lt;!--DEBUG--&gt;
        &lt;!--INFO--&gt;
        &lt;!--WARN--&gt;
        &lt;!--ERROR--&gt;
        &lt;!--FATAL--&gt;
        &lt;root&gt;
          &lt;level value="All" /&gt;
          &lt;appender-ref ref="AdoNetAppender" /&gt;
        &lt;/root&gt;
      &lt;/log4net&gt;
  
    &lt;/applicationSettings&gt;
  
  &lt;/configuration&gt;
  </code></pre>
  
  <p>I already got frustrated to a point of just wanting to do</p>
  
  <pre><code>public Log4NetLogger()
  {
      Logger = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  
  
      Logger.IsDebugEnabled = true;
  }
  </code></pre>
  
  <p>However of course <code>Logger.IsDebugEnabled</code> does not have any setters :/</p>
  
  <p>What do I have to do to get this damn thing to work?</p>