title: Log4Net not logging (probably not initialised)
body: <p>First time playing with Log4Net and I'm running into trouble.  I've followed various tutorials but I've been unable to get it to log anything out.  Let me show you my code and hopefully you can tell me what I'm doing wrong.</p>
  
  <p><strong>app.config</strong></p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;configuration&gt;
    &lt;configSections&gt;
      &lt;section name="log4net" 
               type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
    &lt;/configSections&gt;  
    &lt;log4net&gt;    
      &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="CurrentLog.txt"/&gt;
        &lt;staticLogFileName value="true"/&gt;
        &lt;appendToFile value="true"/&gt;
        &lt;rollingStyle value="Date" /&gt;
        &lt;datePattern value="yyyyMMdd"/&gt;
        &lt;filter type="log4net.Filter.LevelRangeFilter"&gt;
          &lt;acceptOnMatch value="true" /&gt;
          &lt;levelMin value="DEBUG" /&gt;
          &lt;levelMax value="FATAL" /&gt;
        &lt;/filter&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%date{dd MMM yyy HH:mm:ss} %level %message. %newline %exception" /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
        &lt;level value="ALL" /&gt;
        &lt;appender-ref ref="RollingFileAppender" /&gt;
      &lt;/root&gt;
    &lt;/log4net&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p><strong>AssemblyInfo.cs</strong></p>
  
  <pre><code>[assembly: log4net.Config.XmlConfigurator(Watch=true)]
  </code></pre>
  
  <p><strong>Presenter.cs</strong></p>
  
  <p>At the top of the class I have this:</p>
  
  <pre><code>private static readonly ILog log = LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  </code></pre>
  
  <p>Then I try to use the log variable later in the class:</p>
  
  <pre><code>bool isDebugEnabled = log.IsDebugEnabled;
  log.Debug("Failed to save", e);
  </code></pre>
  
  <p>Whenever I inspect the <code>isDebugEnabled</code> variable, it is false, as are all of the other <code>isBlahEnabled</code> if I inspect the log variable.</p>
  
  <p>My suspicion is that I have not hooked up my app.config file correctly because this is the first time I have tried to use one.  I created by right clicking on the project in solution explorer, adding a new item, choosing Application Configuration File and naming it app.config.</p>