LogSettings.cs 584 B

123456789101112131415161718192021222324
  1. using System.Diagnostics;
  2. namespace WingServerCommon.Config
  3. {
  4. public class LogSettings
  5. {
  6. /// <summary>
  7. /// Indicates the logger is on debug mode
  8. /// </summary>
  9. /// <value></value>
  10. public bool DebugMode { get; }
  11. /// <summary>
  12. /// Indicates the logger level
  13. /// </summary>
  14. /// <value></value>
  15. public TraceLevel TraceLevel { get; }
  16. public LogSettings(bool debugMode, TraceLevel traceLevel)
  17. {
  18. DebugMode = debugMode;
  19. TraceLevel = traceLevel;
  20. }
  21. }
  22. }