1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- namespace Teknik.Configuration
- {
- public class LoggingConfig
- {
- public bool Enabled { get; set; }
-
- public string OutputDirectory { get; set; }
-
- public string LogLevel { get; set; }
-
- public bool RotateLogs { get; set; }
-
- public long MaxSize { get; set; }
-
- public int MaxCount { get; set; }
-
- public bool SendEmail { get; set; }
-
- public string EmailLevel { get; set; }
-
- public EmailAccount SenderAccount { get; set; }
-
- public string RecipientEmailAddress { get; set; }
-
- public LoggingConfig()
- {
- SetDefaults();
- }
-
- public void SetDefaults()
- {
- Enabled = true;
- OutputDirectory = string.Empty;
- LogLevel = "Info";
- RotateLogs = false;
- MaxSize = -1;
- MaxCount = -1;
- SendEmail = false;
- EmailLevel = "Error";
- SenderAccount = new EmailAccount();
- RecipientEmailAddress = string.Empty;
- }
- }
- }
|