title: log4net problem under my solution
body: <p>Under my VS2010 solution I've this situation:</p>
  
  <ul>
  <li>WEBSITE</li>
  <li>Library1</li>
  <li>Library2</li>
  </ul>
  
  <p>On global.asax.cs I initialize the log4net configuration using:</p>
  
  <pre><code>private static log4net.ILog _logger = log4net.LogManager.GetLogger("globalASAX");
  
  void Application_Start(object sender, EventArgs e)
  {
      // Code that runs on application startup
      log4net.Config.XmlConfigurator.Configure();
      _logger.Info("[APPLICATION START] " + DateTime.Now.ToString());
  } 
  </code></pre>
  
  <p>It works fine and Application start message is correclty available on log.txt file. The problem happens when I try to use log something on the classes available on DLL Library1 or Library2. </p>
  
  <p>I added the row:</p>
  
  <pre><code>private static log4net.ILog _logger = log4net.LogManager.GetLogger(typeof(ImageRepository));
  </code></pre>
  
  <p>but when I try to all the _logger.error("blabla") nothing happens on log file; all properties of _logger are false (i.e. isdebugenable=false). How can I fix that? I followed the instruction available here:</p>
  
  <p><a href="http://logging.apache.org/log4net/release/manual/configuration.html" rel="nofollow">http://logging.apache.org/log4net/release/manual/configuration.html</a></p>
  
  <p>the configuration of log4net is under web.config file:</p>
  
  <pre><code>&lt;log4net&gt;
      &lt;appender name="RollingFile" type="log4net.Appender.RollingFileAppender"&gt;
          &lt;file type="log4net.Util.PatternString"&gt;
              &lt;conversionPattern value="log\explorer-log-%date{ yyyy.MM.dd.HH.mm.ss}-[%processid].log"/&gt;
          &lt;/file&gt;
          &lt;appendToFile value="true"/&gt;
          &lt;maximumFileSize value="1024KB"/&gt;
          &lt;maxSizeRollBackups value="5"/&gt;
          &lt;layout type="log4net.Layout.PatternLayout"&gt;
              &lt;conversionPattern value="%date %level %logger - %message%newline"/&gt;
          &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
          &lt;level value="DEBUG"/&gt;
          &lt;appender-ref ref="RollingFile"/&gt;
      &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>anyone can help me?
  thanks,
  Andrea</p>