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