LogRetentionOption.cs 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. // ==++==
  2. //
  3. // Copyright (c) Microsoft Corporation. All rights reserved.
  4. //
  5. // ==--==
  6. /*============================================================
  7. **
  8. ** Class: LogStream
  9. **
  10. ===========================================================*/
  11. using System;
  12. namespace System.IO {
  13. internal enum LogRetentionOption {
  14. // One file with no maxFileSize
  15. SingleFileUnboundedSize = 2,
  16. // One file with a maxFileSize
  17. SingleFileBoundedSize = 4,
  18. // Infinite number of sequential files, each with maxFileSize
  19. // When MaxFileSize is reached, writing starts in a new file with an incremented integer suffix.
  20. UnlimitedSequentialFiles = 0,
  21. // Finite number of sequential files, each with maxFileSize
  22. LimitedSequentialFiles = 3,
  23. // Finite number of circular sequential files, each with maxFileSize.
  24. // When MaxFileSize is reached, writing starts in a new file with an incremented integer suffix.
  25. // When MaxNumberOfFiles is reached first file is overwritten. Files are then incrementally overwritten in a circular manner.
  26. LimitedCircularFiles = 1
  27. }
  28. }