Logging: write log when debug flag is changed
This commit is contained in:
parent
a469ff9a23
commit
15d6cac420
@ -481,6 +481,8 @@ Public Class LogConfig
|
||||
''' <param name="Debug">Adds the Debug rule if true.</param>
|
||||
''' <param name="Trace">Adds the Trace rule if true.</param>
|
||||
Private Sub ReloadConfig(Optional Debug As Boolean = False, Optional Trace As Boolean = False)
|
||||
Dim oLogger = GetLogger()
|
||||
|
||||
' Clear Logging Rules
|
||||
_config.LoggingRules.Clear()
|
||||
|
||||
@ -490,6 +492,9 @@ Public Class LogConfig
|
||||
' Add debug rule, if configured
|
||||
If Debug = True Then
|
||||
_config.AddRule(LogLevel.Debug, LogLevel.Error, TARGET_DEBUG)
|
||||
oLogger.Info("DEBUG Logging is now Enabled.")
|
||||
Else
|
||||
oLogger.Debug("DEBUG Logging is now Disabled.")
|
||||
End If
|
||||
|
||||
If Trace = True Then
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user