title: how to give relative path in nlog.config asp.net core
body: <p>How to give relative path in filename instead of hard coded value?        </p>
  
  <pre><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"&gt;
      &lt;!-- targets to write to--&gt;
      &lt;targets&gt;
      &lt;!-- write to file--&gt;
          &lt;target name="allfile" xsi:type="File" 
          filename="C:\BotFamework\OasisDev-src\Logs\nlog-all-${shortdate}.log"/&gt;
      &lt;/targets&gt;
      &lt;!-- rules to map from logger name to target--&gt;
      &lt;rules&gt;
          &lt;logger name="*" minLevel="Trace" writeTo="allfile"/&gt;
      &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>