title: Log4net is not creating the log file after installation windows service
body: <p>I have a windows service project with log4net. If I install the service via installutil.exe then everything works fine. I adding windows setup project - service starting and work, but not creating log files. </p>
  
  <p>My conf</p>
  
  <pre><code>&lt;configSections&gt;
      &lt;section name="ConnectionInfo" type="Astra.Common.Configuration.ConnectionInfoConfiguration, Astra.Common" /&gt;
      &lt;section name="log4net" type="log4net.Config.Log4NetConfigurationSectionHandler,log4net, Version=2.0.8, Culture=neutral, PublicKeyToken=669e0ddf0bb1aa2a" /&gt;
    &lt;/configSections&gt;
  </code></pre>
  
  <p>...</p>
  
  <pre><code>&lt;log4net&gt;
      &lt;appender name="LogFileAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;param name="File" value="Logs\service.log" /&gt;
        &lt;param name="AppendToFile" value="true" /&gt;
        &lt;maxSizeRollBackups value="10" /&gt;
        &lt;maximumFileSize value="5MB" /&gt;
        &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;
        &lt;layout type="log4net.Layout.PatternLayout"&gt;
          &lt;param name="ConversionPattern" value="%d  %-5p %m%n" /&gt;
        &lt;/layout&gt;
  
      &lt;/appender&gt;
  
      &lt;logger name="LOGGER"&gt;
        &lt;appender-ref ref="LogFileAppender" /&gt;
      &lt;/logger&gt;
    &lt;/log4net&gt;
  </code></pre>
  
  <p>Class</p>
  
  <pre><code>public static class Logger
      {
          private static ILog log = LogManager.GetLogger("LOGGER");
  
  
          public static ILog Log
          {
              get { return log; }
          }
  
          public static void InitLogger()
          {
              XmlConfigurator.Configure();
          }
  
          static Logger()
          {
              InitLogger();
          }
      }
  
  
  [assembly: log4net.Config.XmlConfigurator(Watch = true)]
  </code></pre>
  
  <p>Service as NetworkService</p>