title: log4net doesn't log in Windows Event Viewer
body: <p>I would like to log in the Windows Event Viewer using log4net.<br>
  I created a Console Application (.NET Framework 4), I added the reference log4net.dll, I put the following code in my App.config:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&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="EventLogAppender" type="log4net.Appender.EventLogAppender"&gt;
    &lt;layout type="log4net.Layout.PatternLayout"&gt;
      &lt;conversionPattern value="%date [%thread] %-5level %logger [%property{NDC}] - %message%newline"/&gt;
    &lt;/layout&gt;
  &lt;/appender&gt;
  &lt;root&gt;
    &lt;level value="ALL"/&gt;
    &lt;appender-ref ref="EventLogAppender"/&gt;
  &lt;/root&gt;
  &lt;/log4net&gt;
  
  &lt;startup&gt;&lt;supportedRuntime version="v2.0.50727"/&gt;&lt;/startup&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>And I put the following code :</p>
  
  <pre><code>class Program
  {
      static void Main(string[] args)
      {
          log4net.ILog log = log4net.LogManager.GetLogger(typeof(Program));
          log.Error("test error", new Exception("error's exception", new Exception("error's innerexception")));
  
          Console.Read();
      }
  }
  </code></pre>
  
  <p>It doesn't log, nothing happens, why?</p>
  
  <p>Thanks</p>