title: NLog File is not creating After publishing the WEBAPI
body: <p>I have Used NLog for logging and its working on local but when i published it then its not creating the log file while requesting the API. i have also set the </p>
  
  <pre><code>Copy to output directory  = Copy always
  </code></pre>
  
  <p>Here is NLog.config File</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;?xml version="1.0" encoding="utf-8" ?&gt;
  &lt;nlog xmlns="http://www.nlog-project.org/schemas/NLog.xsd"
        xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
        xsi:schemaLocation="http://www.nlog-project.org/schemas/NLog.xsd NLog.xsd"
        autoReload="true"
        throwExceptions="false"
        internalLogLevel="Off" internalLogFile="c:\temp\nlog-internal.log" &gt;
  
  
    &lt;!-- optional, add some variabeles
    https://github.com/nlog/NLog/wiki/Configuration-file#variables
    --&gt;
    &lt;variable name="myvar" value="myvalue"/&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 
      See https://github.com/nlog/NLog/wiki/Targets for possible targets.
      See https://github.com/nlog/NLog/wiki/Layout-Renderers for the possible layout renderers.
      --&gt;
      &lt;target xsi:type="File" name="DebugFile" fileName="${basedir}/logs/Debug_${shortdate}.log" layout="${longdate} ${threadid} ${uppercase:${level}} ${message}"/&gt;
      &lt;target xsi:type="File" name="ErrorFile" fileName="${basedir}/logs/Error_${shortdate}.log" layout="${longdate} ${threadid} ${uppercase:${level}}  ${message} ${newline} ${exception:format=tostring} ${newline}"/&gt;
      &lt;!--
      Writing events to the a file with the date in the filename. 
      &lt;target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
              layout="${longdate} ${uppercase:${level}} ${message}" /&gt;
      --&gt;
    &lt;/targets&gt;
  
    &lt;rules&gt;
      &lt;!-- add your logging rules here --&gt;
  
      &lt;!--
      Write all events with minimal level of Debug (So Debug, Info, Warn, Error and Fatal, but not Trace)  to "f"
      &lt;logger name="*" minlevel="Debug" writeTo="f" /&gt;
      --&gt;
      &lt;logger name="*" levels="Debug,Info,Warn" writeTo="DebugFile" /&gt;
  
      &lt;logger name="*" level="Error" writeTo="ErrorFile" /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>
  
  <p>Please tell me where i am doing wrong.</p>