diff --git a/Modules.Logging/LogConfig.vb b/Modules.Logging/LogConfig.vb index 73dc2824..7cde7e75 100644 --- a/Modules.Logging/LogConfig.vb +++ b/Modules.Logging/LogConfig.vb @@ -487,13 +487,12 @@ Public Class LogConfig AddDefaultRules(_config) ' Add debug rule, if configured - If Debug Then + If Debug = True Then _config.AddRule(LogLevel.Debug, LogLevel.Error, TARGET_DEBUG) - _config.AddRule(LogLevel.Debug, LogLevel.Error, TARGET_MEMORY) End If - If Trace Then - _config.AddRuleForAllLevels(TARGET_TRACE) + If Trace = True Then + _config.AddRule(LogLevel.Trace, LogLevel.Error, TARGET_TRACE) End If ' Reload all running loggers