title: Why is the ${basedir} NLog configuration not working?
body: <p>Why I cannot use ${basedir} nlog.config in my production server? If I use <code>fileName="${basedir}/logs/${shortdate}.log"</code>, nlog does not log the message info, but if I change to something like <code>fileName="C:/logs/${shortdate}.log"</code> it will log the message info</p>
  
  <p>my nlog.config:</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"&gt;
  
    &lt;targets&gt;    
      &lt;target xsi:type="File" name="f" fileName="${basedir}/logs/${shortdate}.log"
              layout="${longdate} ${uppercase:${level}} ${message}" /&gt;
    &lt;/targets&gt;
  
    &lt;rules&gt;
      &lt;logger name="*" minlevel="Trace" writeTo="f" /&gt;
    &lt;/rules&gt;
  &lt;/nlog&gt;
  </code></pre>
  
  <p>Controller:</p>
  
  <pre class="lang-csh prettyprint-override"><code>public class HomeController : Controller
  {
      private static Logger logger = LogManager.GetCurrentClassLogger();
  
      public ActionResult Index()
      {
          logger.Debug("Test NLog");
          return View();
      }
  }
  </code></pre>