Rolling Flat File Trace Listener problems???

Topics: Logging Application Block
Oct 28, 2010 at 11:58 AM

When I config the Rolling Flat File Trace Listener which Roll Interval is Day, every day it will create a new file, this is true. But why does it always write today's log into the default file(The config file name.)?

For example,

10/28/2010  it will write the log into the file "mylog.log"

but 10/29/2010

    it still write the log into the file "mylog.log" and create a new log file "mylog.2010-10-29.log" and move the log of the 10/28/2010 into the new file?

 

Is there any way to fix that? I need to write the log to the new log file instead of the configed log file.

Oct 29, 2010 at 12:44 AM

That behavior is by design as described here (Remarks section).

 

Sarah Urmeneta
Global Technology and Solutions
Avanade, Inc.
entlib.support@avanade.com