title: How to set log4net LockingModel programmatically after loading with XmlConfigurator?
body: <p>I have this XML log4net configuration:</p>
  
  <pre><code>  &lt;log4net&gt;
      &lt;appender name="myAppender" type="log4net.Appender.RollingFileAppender"&gt;
        &lt;file value="mylog.txt" /&gt;
      &lt;/appender&gt;
      &lt;root&gt;
        &lt;level value="DEBUG" /&gt;
          &lt;appender-ref ref="myAppender" /&gt;
      &lt;/root&gt;
    &lt;/log4net&gt;
  </code></pre>
  
  <p>I load this configuration with the C# line below, and it works well:</p>
  
  <pre><code>log4net.Config.XmlConfigurator.Configure(path);
  </code></pre>
  
  <p><strong>PROBLEM:</strong> Now I want to set the <code>lockingModel</code> to <code>MinimalLock</code>. <strong>Programmatically</strong>, not in XML.<br>
  How to do it?</p>
  
  <p>That would be the equivalent of adding <code>&lt;lockingModel type="log4net.Appender.FileAppender+MinimalLock" /&gt;</code> in the XML configuration.</p>