title: How to use NLog for a DLL
body: <p>I am trying to implement a simple log using Nlog Refresh 1.0 for a class Library project.
  It seems nlog does not create a logfile when it's instantiated from within a dll.</p>
  
  <p>Is there some other way around this ?</p>
  
  <p>my config file looks like this:</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        throwExceptions="true"&gt;
  
      &lt;targets&gt;
        &lt;target name="file" xsi:type="File" fileName="${basedir}/nlog.txt" /&gt;
          &lt;target name="console" xsi:type="Console" /&gt;
      &lt;/targets&gt;
  
      &lt;rules&gt;
          &lt;logger name="*" minlevel="Info" writeTo="file" /&gt;
          &lt;logger name="*" minlevel="Info" writeTo="console" /&gt;
      &lt;/rules&gt;
  
  &lt;/nlog&gt;
  </code></pre>
  
  <p>I know there is nothing wrong with this config because it works from within an exe project.</p>
  
  <p>Edit:
  just to clarify:
  I have no access to the calling program which uses my dll as a plugin. The calling program is in fact outlook which uses my dll as a plugin. I would want to keep a log which is only relevant to my dll and has nothing to do with outlook itself.</p>