diff --git a/DTLib.Logging/LogSeverity.cs b/DTLib.Logging/LogSeverity.cs index 81d3d67..e60fb92 100644 --- a/DTLib.Logging/LogSeverity.cs +++ b/DTLib.Logging/LogSeverity.cs @@ -16,7 +16,7 @@ internal static class LogSeverityHelper LogSeverity.Debug => logger.DebugLogEnabled, LogSeverity.Info => logger.InfoLogEnabled, LogSeverity.Warn => logger.WarnLogEnabled, - LogSeverity.Error => logger.ErrorLogenabled, + LogSeverity.Error => logger.ErrorLogEnabled, _ => throw new ArgumentOutOfRangeException(nameof(severity), severity, "unknown severity") }; } \ No newline at end of file diff --git a/DTLib.Logging/Loggers/CompositeLogger.cs b/DTLib.Logging/Loggers/CompositeLogger.cs index 1330a05..1cf613d 100644 --- a/DTLib.Logging/Loggers/CompositeLogger.cs +++ b/DTLib.Logging/Loggers/CompositeLogger.cs @@ -38,14 +38,14 @@ public class CompositeLogger : ILogger } } - public bool ErrorLogenabled + public bool ErrorLogEnabled { get => _errorLogenabled; set { _errorLogenabled = value; for (int i = 0; i < _loggers.Length; i++) - _loggers[i].ErrorLogenabled = value; + _loggers[i].ErrorLogEnabled = value; } } diff --git a/DTLib.Logging/Loggers/ConsoleLogger.cs b/DTLib.Logging/Loggers/ConsoleLogger.cs index 2ebfd8b..fbd6f31 100644 --- a/DTLib.Logging/Loggers/ConsoleLogger.cs +++ b/DTLib.Logging/Loggers/ConsoleLogger.cs @@ -13,7 +13,7 @@ public class ConsoleLogger : ILogger #endif public bool InfoLogEnabled { get; set; } = true; public bool WarnLogEnabled { get; set; } = true; - public bool ErrorLogenabled { get; set; } = true; + public bool ErrorLogEnabled { get; set; } = true; public ILogFormat Format { get; } readonly object consolelocker = new(); diff --git a/DTLib.Logging/Loggers/ContextLogger.cs b/DTLib.Logging/Loggers/ContextLogger.cs index fda6b67..36553ec 100644 --- a/DTLib.Logging/Loggers/ContextLogger.cs +++ b/DTLib.Logging/Loggers/ContextLogger.cs @@ -67,10 +67,10 @@ public class ContextLogger : ILogger set => ParentLogger.WarnLogEnabled = value; } - public bool ErrorLogenabled + public bool ErrorLogEnabled { - get => ParentLogger.ErrorLogenabled; - set => ParentLogger.ErrorLogenabled = value; + get => ParentLogger.ErrorLogEnabled; + set => ParentLogger.ErrorLogEnabled = value; } /// Appends subContext to Context diff --git a/DTLib.Logging/Loggers/FileLogger.cs b/DTLib.Logging/Loggers/FileLogger.cs index dc8f1d6..48ddb72 100644 --- a/DTLib.Logging/Loggers/FileLogger.cs +++ b/DTLib.Logging/Loggers/FileLogger.cs @@ -10,7 +10,7 @@ public class FileLogger : ILogger #endif public bool InfoLogEnabled { get; set; } = true; public bool WarnLogEnabled { get; set; } = true; - public bool ErrorLogenabled { get; set; } = true; + public bool ErrorLogEnabled { get; set; } = true; public ILogFormat Format { get; } public string LogfileName { get; protected set; } diff --git a/DTLib.Logging/Loggers/ILogger.cs b/DTLib.Logging/Loggers/ILogger.cs index ab6eedf..19c5622 100644 --- a/DTLib.Logging/Loggers/ILogger.cs +++ b/DTLib.Logging/Loggers/ILogger.cs @@ -7,7 +7,7 @@ public interface ILogger : IDisposable bool DebugLogEnabled { get; set; } bool InfoLogEnabled { get; set; } bool WarnLogEnabled { get; set; } - bool ErrorLogenabled { get; set; } + bool ErrorLogEnabled { get; set; } void Log(string context, LogSeverity severity, object message, ILogFormat format);