title: How do i reload NLog type instances without shutting down the appdomain?
body: <p>NLog provides a factory for specifying how to create different instances of classes used when setting up NLog, for example targets and renderers.</p>
  
  <pre><code>ConfigurationItemFactory.Default.CreateInstance
  </code></pre>
  
  <p>I have a bunch of unit tests (XUnit) that rely on being able to configure this function for testing different behaviours with my custom logging functionality. However, this function is only run once, when requesting the first logger after starting the appdomain. This causes problems with all other tests running in the same appdomain since the NLog framework will not execute <code>CreteInstance</code> again until the appdomain is restarted, which it won't be when running the Visual Studio XUnit runner for example.</p>
  
  <p>How can I force NLog to recreate the different types specified with <code>CreteInstance</code>?</p>