EntLib 4.0 Rolling Flat File maxArchivedFiles?

Topics: Logging Application Block
Dec 20, 2012 at 12:02 AM

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 1: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 3:22 AM

Hi Randy,

Cheers i'll look into a custom trace listener.