title: log4net doesn't watch my app.config
body: <p>I configured my log4net to watch on changes made to the app.config file.</p>
  
  <pre class="lang-cs prettyprint-override"><code>[assembly: log4net.Config.XmlConfigurator(Watch = true)]
  </code></pre>
  
  <p>When I run my app and change things in the config file, these changes only take effect when I restart my app. Why could this be?</p>
  
  <p>Is there also a way to tell log4net to watch on changes in the app.config? Like:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;appender name="FileAppender" type="log4net.Appender.FileAppender" &gt;
      &lt;watch value="true" /&gt;
  &lt;/appender&gt;
  </code></pre>
  
  <p>------------- EDIT -------------</p>
  
  <p>I tried now to use a separate config-file: log4net.config.<br>
  It looks like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;log4net&gt;
    &lt;appender name="FileAppender" type="log4net.Appender.FileAppender"&gt;
      &lt;file value="c:\log.txt" /&gt;
      &lt;appendToFile value="true" /&gt;
      &lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;
      &lt;layout type="log4net.Layout.PatternLayout"&gt;
        &lt;conversionPattern value="%d [%t] %-5p %c (line %L) -- %m%n" /&gt;
      &lt;/layout&gt;
    &lt;/appender&gt;
    &lt;root&gt;
      &lt;appender-ref ref="FileAppender" /&gt;
    &lt;/root&gt;
  &lt;/log4net&gt;
  </code></pre>
  
  <p>In my assemblyInfo.cs I wrote the following:</p>
  
  <pre class="lang-cs prettyprint-override"><code>[assembly: log4net.Config.XmlConfigurator(ConfigFile = "log4net.config", Watch = true)]
  </code></pre>
  
  <p>The class that logs to the file looks like this:</p>
  
  <pre class="lang-cs prettyprint-override"><code>ILog myLogger = LogManager.GetLogger(typeof(Form1));
  myLogger.Debug("test");
  </code></pre>
  
  <p>This works like the old version. logfile entries are made, but when I change my log4net.config during runtime, these changes are not applied.... "Watch=true" should enable that feature, right? </p>