The next generation of the Teknik Services. Written in ASP.NET.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

LoggingConfig.cs 761B

12345678910111213141516171819202122232425262728293031323334353637
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Linq;
  4. using System.Web;
  5. namespace Teknik.Configuration
  6. {
  7. public class LoggingConfig
  8. {
  9. public bool Enabled { get; set; }
  10. public string OutputDirectory { get; set; }
  11. public string LogLevel { get; set; }
  12. public bool RotateLogs { get; set; }
  13. public long MaxSize { get; set; }
  14. public int MaxCount { get; set; }
  15. public LoggingConfig()
  16. {
  17. SetDefaults();
  18. }
  19. public void SetDefaults()
  20. {
  21. Enabled = true;
  22. OutputDirectory = string.Empty;
  23. LogLevel = "Info";
  24. RotateLogs = false;
  25. MaxSize = -1;
  26. MaxCount = -1;
  27. }
  28. }
  29. }