I want my entries to be in the% AllUsersProfile% folder (or its subfolder ...)
I am using NLog 1.0 and it looks like the wiki has holes in it as they update their documentation for release 2.0.
I am using Win7 and have tried the following:
<target name="file" xsi:type="File" fileName="${%AllUsersProfile%}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm">
<target name="file" xsi:type="File" fileName="${%AllUsersProfile}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm">
<target name="file" xsi:type="File" fileName="${AllUsersProfile}\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm">
<target name="file" xsi:type="File" fileName="%AllUsersProfile%\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm">
<target name="file" xsi:type="File" fileName="%AllUsersProfile\Logs\${date:format=yyyy-MM-dd_(HH)}_(pid-${processid}).htm">
source
share