title: Log4Net not generating log file
body: <p>I have <code>ASP.Net WebAPI</code> project &amp; using <code>Log4Net</code> API. </p>
  
  <pre><code> protected void LogException(Exception ex)
      {
          var msgParams = new Dictionary&lt;string, string&gt;
                  {
                      { "Message", ex.Message },
                      { "StackTrace", ex.StackTrace },
                  };
  
          _logger.Info(JsonConvert.SerializeObject(msgParams));
      }
  </code></pre>
  
  <p>XML Configuration</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt; &lt;log4net&gt;
  &lt;appender name="RollingFile" type="log4net.Appender.RollingFileAppender"&gt;
  
      &lt;file value="App.log" /&gt;
  
      &lt;appendToFile value="true" /&gt;
  
      &lt;maximumFileSize value="50KB" /&gt;
      &lt;maxSizeRollBackups value="2" /&gt;
  
      &lt;encoding value="utf-8" /&gt;
  
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%date %level %thread %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;
  </code></pre>
  
  <p></p>
  
  <p>But when any exception occurs &amp; above LogException() gets hit, <strong><em>neither I am getting any exception nor I see any App.Log file</em></strong> in my directory.</p>
  
  <p>What I am missing here?
  Any help/suggestion highly appreciated. </p>