title: Log4net logging not working - asp.net mvc
body: <p>My log4net configuration is this,</p>
  
  <pre><code>    &lt;?xml version="1.0" encoding="utf-8" ?&gt;
       &lt;log4netConfiguration&gt;
       &lt;configSections&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler, log4net" /&gt;
    &lt;/configSections&gt;
    &lt;appSettings&gt;
      &lt;add key="log4net.Config" value="log4net.config" /&gt;
    &lt;/appSettings&gt;
    &lt;log4net&gt;   
      &lt;appender name="RollingFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file type="log4net.Util.PatternString" value="C:\my_logs/my_web_logs/my_log_%date{ddMMyyyy}.log" /&gt;
        &lt;appendToFile value="true" /&gt;      
        &lt;rollingStyle value="Size" /&gt;
        &lt;maxSizeRollBackups value="5" /&gt;
        &lt;maximumFileSize value="30MB" /&gt;
        &lt;datePattern value="yyyyMMdd" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%4t %d{ABSOLUTE} %-5p %m%n"/&gt;
          &lt;!--&lt;conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] – %message%newline" /&gt;--&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;   
      &lt;root&gt;
        &lt;level value="INFO" /&gt;
        &lt;appender-ref ref="RollingFileAppender" /&gt;
      &lt;/root&gt;
    &lt;/log4net&gt;
  &lt;/log4netConfiguration&gt;
  </code></pre>
  
  <p>I have a Logger helper class as,</p>
  
  <pre><code>public static class Logger
      {
          private static readonly log4net.ILog log = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
  
          public static log4net.ILog Log
          {            
              get { return log; }
          }
      }
  </code></pre>
  
  <p>In my assembly info, I have this entry,</p>
  
  <pre><code>// Configure log4net using the .config file 
  [assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
  </code></pre>
  
  <p>log4net.config is the config file added to the web project.</p>
  
  <p>In the code I log using the logger class,</p>
  
  <pre><code>Logger.Log.Info("User visits Sign In Page.");
  </code></pre>
  
  <p>Logging has been working when I set up the above setting. But suddenly logging  has stopped working. 
  But when I created a new asp.net mvc website with above settings, logging works for that.
  I tried with IIS Express and Local IIS. In both cases logging works for the test application I have created. </p>
  
  <p>I cannot figure out why it's not logging? How can I diagnose this? What are the possible issues?</p>