Rolling Flat File TraceListener Location

Topics: Logging Application Block
Jan 25, 2007 at 3:04 PM
I am using VS 2005 with the January 2007 CTP of the EntLib.

In my ASP.NET application, how do I set the location of the log file? Currently it is set to the default rolling.log filename.

After multiple log writes (and finally calling the Dispose method of the Writer) the events are written to the log. However, they are written in the folling directory: C:\Program Files\Microsoft Visual Studio 8\Common7\IDE.

I am using VS2K5's development web server. Could this be the issue? If I deploy to IIS, will the log file be written to the virtual directory of the application? Is there way to specify that location?
Jan 25, 2007 at 5:58 PM
Hi Greif -

Thanks for reporting this. The files are meant to be logged relative to the AppBase directory (which should be your virutal directory root), however there's a bug that meant the files are probably being logged relative to the current working directory (which could be anything :-). We'll fix this for the next drop.