FlatFile path

Topics: Logging Application Block
Feb 18, 2010 at 10:00 AM

I have an issue with flat file logging. I need to specify the file path to my own application. Is there any chance to provide this? Let me explain. The filename property of "FlatFile TraceListener" need to be within my application. Can this be specified using the ApplicationPath?



Feb 18, 2010 at 10:04 AM
Edited Feb 18, 2010 at 10:16 AM

The FileName property can be a physical path or a relative path, relative path to your executing application path.  So if you're running a console app and set the FileName property to trace.log, the location will be in the bin\debug folder of your project.


Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.