我希望我的日志记录进入 %AllUsersProfile% 文件夹(或其子文件夹...)
我正在使用 NLog 1.0,并且网站 wiki 似乎有漏洞,因为他们正在升级他们的 2.0 版本的文档。
我正在使用 Win7 并尝试了以下操作:
<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">