title: Log4Net doesn't log when deployed
body: <p>I'm using log4net to log my application (This is a WPF application).
  The logging works well in debug mode, but it doesn't work with my deployed version.
  The application is installed in C:\Program Files (x86)\MyApp (I use InnoSetup to create the installer).
  In debug mode, the log folder is well created and the log files too.
  In the deployed version, nothing appears, the log folder isn't created.</p>
  
  <p>Here is my log4net configuration:</p>
  
  <pre><code>&lt;?xml version="1.0"?&gt;
  &lt;configuration&gt;
      &lt;configSections&gt;
          &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,Log4net"/&gt;
      &lt;/configSections&gt;    
  &lt;startup&gt;
  &lt;supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.0"/&gt;&lt;/startup&gt;
    &lt;log4net&gt;
      &lt;appender name="FileAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="log\main.log" /&gt;
        &lt;encoding value="utf-8" /&gt;
        &lt;appendToFile value="true" /&gt;
        &lt;maximumFileSize value="1000KB" /&gt;
        &lt;maxSizeRollBackups value="0" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;conversionPattern value="%date [%thread] %-5level %logger: %message%newline" /&gt;
        &lt;/layout&gt;
      &lt;/appender&gt;
      &lt;root&gt;
        &lt;level value="INFO" /&gt;
        &lt;appender-ref ref="FileAppender" /&gt;
      &lt;/root&gt;
    &lt;/log4net&gt;
  &lt;/configuration&gt;
  </code></pre>
  
  <p>This is how I write in logs in my classes (this example is from App.xaml.cs):</p>
  
  <pre><code>protected static readonly ILog log = LogManager.GetLogger(typeof(App));
  
  static App()
  {
      log4net.Config.XmlConfigurator.Configure();  
  }
  
  private void Application_Startup(object sender, StartupEventArgs e)
  {
      log.Info("This is an info log");
  }
  </code></pre>
  
  <p>I've tried to change the level value to ALL, but nothing changes.
  I think it may be a parameter to set, because it works well in debug mode (the logs files are properly created in the folder "x86\Debug\log\".</p>
  
  <p>I've made some researches but I found nothing about that.</p>