diff --git a/Snowflake.Data/Logger/EasyLoggerManager.cs b/Snowflake.Data/Logger/EasyLoggerManager.cs index b3eae8c33..da1748912 100644 --- a/Snowflake.Data/Logger/EasyLoggerManager.cs +++ b/Snowflake.Data/Logger/EasyLoggerManager.cs @@ -32,17 +32,17 @@ public virtual void ReconfigureEasyLogging(EasyLoggingLogLevel easyLoggingLogLev var appender = string.Equals(logsPath, "STDOUT", StringComparison.OrdinalIgnoreCase) ? AddConsoleAppender(rootLogger) : AddRollingFileAppender(rootLogger, logsPath); - RemoveOtherAppendersForEasyLogging(rootLogger, appender); + RemoveOtherEasyLoggingAppenders(rootLogger, appender); repository.RaiseConfigurationChanged(EventArgs.Empty); } } - private static void RemoveOtherAppendersForEasyLogging(log4net.Repository.Hierarchy.Logger logger, IAppender appender) + private static void RemoveOtherEasyLoggingAppenders(log4net.Repository.Hierarchy.Logger logger, IAppender appender) { var existingAppenders = logger.Appenders.ToArray(); foreach (var existingAppender in existingAppenders) { - if (IsAppenderCreatedForEasyLogging(existingAppender) && existingAppender != appender) + if (IsEasyLoggingAppender(existingAppender) && existingAppender != appender) { logger.RemoveAppender(existingAppender); } @@ -73,7 +73,7 @@ private static IAppender AddRollingFileAppender(log4net.Repository.Hierarchy.Log return appender; } - private static bool IsAppenderCreatedForEasyLogging(IAppender appender) + private static bool IsEasyLoggingAppender(IAppender appender) { if (appender.GetType() == typeof(ConsoleAppender)) {