From b7bed9ae4e6315fe559e0dc2cd47362f8fc99528 Mon Sep 17 00:00:00 2001 From: Jonathan Jenne Date: Wed, 15 Dec 2021 10:34:55 +0100 Subject: [PATCH] Logging: Fix trace logging only appearing when configured --- Modules.Logging/LogConfig.vb | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) 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