Enterprise Library(v5.0) Logging Application Block's Rolling Flat File Trace Listener has options to roll over the log files. ( http://msdn.microsoft.com/en-us/library/ff664768(v=pandp.50)#trace_rolling )

They are 'Time' and 'File Size'.

  • I can manage log files' whole size by controlling 'Max Archived Files' and 'RollSizeKB'.
  • Or, I can manage log files' max preservation period by controlling 'Max Archived Files' and 'RollInterval'.

But, I want to manage both log files' max preservation period and whole size at the same time.

How can I do it? Do I need to make and use my own TraceListener?

0

There are 0 best solutions below