Link to home
Start Free TrialLog in
Avatar of parabellum
parabellum

asked on

NLog llog to custom directory

Hello,

I have started using NLog logging library.(currently logging to txt file)
<target> has a config like:
fileName="${basedir}/logs/logfile.txt"  

I want to log to, say D:\logfile.txt  

How can i do that ?
This seems simple but  i have failed to do it.
Thanks.
ASKER CERTIFIED SOLUTION
Avatar of mkobrin
mkobrin

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of parabellum
parabellum

ASKER

Well there is a misunderstanding.
I want to do it in the NLog config file.
Nevermind i have solved it.  There was one extra '$' char  that caused problems.
Not quite the solution i wanted. But thanks for your time.