NLog configuration for FilePath

Posted by Ashokn under ASP.NET on 12/2/2010 | Points: 10 | Views : 5101 | Status : [Member] | Replies : 1

While using NLog for error logging facility,I'm using below configuration of NLog for Error log file.

<target name="file" xsi:type="File" fileName="D:\Pramod\MyErrorLog.txt" />

But now error log is getting generated in D:\Program Files\Microsoft Visual Studio 9.0\Common7 This might be because my VS is installed in D:\Program Files

But How can I configure fileName to get Erro File in the desired path(Ex:C\MyProject)

Thanks in advance...


Login to post response