Enterprise Library 4.1 default log folder

Topics: Logging Application Block
Jan 12, 2011 at 8:46 AM

Hello all,

I have a problem with defintion log entries. For one environments, log are saved in c:\temp directory location, but in another environment, logs are saved (for example) in d:\temp directory location. Is it possible to define type of relative path (like: defaultLogpath:"C:\temp") and define in fileName only name of log files?


Jan 13, 2011 at 1:10 AM

Why don't you just set the absolute path when it seems you want the location of the log to be consistent for different environments?  Setting only the name of the log file in the FileName property causes it to be logged in the directory where the application is deployed.  It's always relative to that folder unless you specify an absolute path.


Sarah Urmeneta
Global Technologies & Solutions
Avanade, Inc.