title: How to use variables from different class in NLog.Config?
body: <p>I have a Class with a <code>static</code> field which holds a path.</p>
  
  <pre><code>public static class PfadSammlung
  {
      public static string Path_Example = @"C:\temp";
  }
  </code></pre>
  
  <p>How could I use this path in the <code>NLog.Config</code> file to specify the file name for the target?</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;targets&gt;
      &lt;target xsi:type="File"
          name ="processInfo"
          fileName="C:\temp\ProcessInfoLog.log"
          layout="${longdate}  |  ProcessInfo: ${message}"
      /&gt;
  &lt;/targets&gt;
  </code></pre>
  
  <p>Any help would be greatly appreciated.</p>