EntLib 4.0 Rolling Flat File maxArchivedFiles?

Topics: Logging Application Block
Dec 19, 2012 at 11:02 PM

Hi All,

I'm working on a solution using EntLib 4.0 and Rolling flat files.

I want to limit the number of files created but the property "maxArchivedFiles" doesn't exist in this version.

What are my options (besided upgrading to v5).



Dec 20, 2012 at 12:51 AM

If you want to avoid creating more than a set number of files then probably the only way to do that would be to create a custom trace listener that implements the maxArchivedFiles functionality.  The other option I can think of is some sort of external purge mechanism.

Randy Levy
Enterprise Library support engineer
Support How-to 

Dec 21, 2012 at 2:22 AM

Hi Randy,

Cheers i'll look into a custom trace listener.