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