Is it possible to set a relative path for a Flat File Trace Listener?

Topics: Logging Application Block
Jul 9, 2009 at 8:08 PM

I am building an ASP.NET app using Ent Lib Logging.  On my flat file trace listeners I am hoping that I can specify a relative path so that when I move through the environments (dev->UAT->Prod) I don't have to continually update all my Flat file trace listener filenames.

Is this possible?

Jul 10, 2009 at 3:56 AM


Yes you may specify a relative path. Notice that when you add a flat file trace listener, the value on the filename is not a full path. I tried this once, I have a simple web, then deployed it to my IIS, and verified that relative paths work.

Valiant Dudan
Global Technology and Solutions
Avanade, Inc.