Logging: Fix trace logging only appearing when configured
This commit is contained in:
parent
b4181e3e0b
commit
b7bed9ae4e
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user