Visual Basic .NET » ASP.NET General Discussion
Dynamically change the Flat File Sink file name in the MS Logging Application Block -- JD --


Hi

Sorry to those that might have already read this at microsoft . public
. dotnet . languages . csharp - no reponse there.

I have been having a bit of a look at the Microsoft Logging Application

Block (using .NET 1.1). I found it easy to get going, but now have struck a bit of a brick wall.
I want to dynamically change the flat file location so that on a pre-defined condition (date changes, file memory size exceeded), a new file is created and logging continues in that file.
I can see the where the flat file configuration is set in the config file:
fileName="trace.log" header="----------------------------------------"
footer="----------------------------------------" />
Are there any calls/methods in this Block that allow the filename value

to be changed at runtime (not in the web.config)?
Grateful for any advice, or happy to provide further explanation ...
Thanks
James

[Submit Comment]Home