Logging: Fix trace logging only appearing when configured

This commit is contained in:
Jonathan Jenne 2021-12-15 10:34:55 +01:00
parent b4181e3e0b
commit b7bed9ae4e

View File

@ -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