Saving logfiles in relative paths

Topics: Logging Application Block
May 30, 2007 at 9:07 AM
Hi all,

sry, i am pretty new to EntLib. One Question to the Logging Block:
How can i set the folder for the log-files (using rolling logging) to an childfolder of my app-dir? (e. g. {APPLICATION_DIR}\logs\)

Thx for help. Axel.
May 30, 2007 at 4:51 PM
Just specify the relative path in the FileName property:





David Hayden
Microsoft MVP C#
May 31, 2007 at 8:24 AM
ah, thank you. My mistake was to set an leading '\' like (\logs\) and the folder was created in the c: