title: Nlog log to another directory
body: <p>By default Nlog logs to default application folder</p>
  
  <pre><code>        &lt;target xsi:type="File" name="f" 
        fileName="${basedir}/logs/${shortdate}.log"
               layout="${longdate} ${uppercase:${level}} ${message} 
     ${exception:message=tostring}" /&gt;
  </code></pre>
  
  <p>Currently my application is in C directory and I want Nlog to log to D directory in specific folder. I read about      </p>
  
  <pre><code>            fileName="${tempdir:folder=myapptmp}/sample.log"
  </code></pre>
  
  <p>and</p>
  
  <pre><code>       ${specialfolder:dir=String:file=String:folder=Enum}
  </code></pre>
  
  <p>Special folder it seems logs into MyDocuments, Pictures. So not much useful. Tempdir I am not sure about. Has anybody done this earlier or has any idea about it</p>
  
  <p>My Nlog config </p>
  
  <pre><code>    &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"&gt;
  
      &lt;!-- 
       See https://github.com/nlog/nlog/wiki/Configuration-file 
          for information on customizing logging rules and outputs.
          --&gt;
        &lt;targets&gt;
       &lt;!-- add your targets here --&gt;
  
  
         &lt;target name="File" xsi:type="File"  
       fileName="D:\Sushil\DwebLogging\log-${date:format=yyyy-MM-dd}.log"
          layout="${longdate} ${uppercase:${level}} ${message} ${exception: 
       format=tostring}" /&gt;
          &lt;rules&gt;
           &lt;logger name="*" minlevel="Trace" writeTo="File" /&gt;
        &lt;/rules&gt;
        &lt;/nlog&gt; 
  </code></pre>