update logger

This commit is contained in:
Jonathan Jenne 2019-09-20 16:18:21 +02:00
parent f3a3812993
commit 82a839949d
3 changed files with 3 additions and 2 deletions

View File

@ -156,6 +156,7 @@ Public Class LogConfig
End Get
Set(isDebug As Boolean)
Me.isDebug = isDebug
GetLogger().Info("=> Debug is now {0}", isDebug)
ReloadConfig(isDebug)
End Set
End Property

View File

@ -31,7 +31,7 @@ Namespace My
Dim oUIConfigManager As New ConfigManager(Of ClassUIConfig)(oLogConfig, oUIConfigPath, oUIConfigPath)
LogConfig = oLogConfig
LogConfig.Debug = oSystemConfigManager.Config.LogDebug
LogConfig.Debug = True 'oSystemConfigManager.Config.LogDebug
SystemConfigManager = oSystemConfigManager
UIConfigManager = oUIConfigManager

View File

@ -114,7 +114,7 @@ Partial Public Class frmMain
oMatchingProfiles = oProfileFilter.FilterWindowsByWindowTitleRegex(oMatchingProfiles, oWindowInfo.WindowTitle)
Logger.Debug("Profiles after FilterWindowsByWindowTitleRegex: {0}", oMatchingProfiles.Count)
'oMatchingProfiles = oProfileFilter.FilterProfilesByFocusedControl(oMatchingProfiles, oClipboardContents, oFocusedControl.hWnd.ToString)
oMatchingProfiles = oProfileFilter.FilterProfilesByFocusedControlLocation(oMatchingProfiles, oClipboardContents)
'oMatchingProfiles = oProfileFilter.FilterProfilesByFocusedControlLocation(oMatchingProfiles, oClipboardContents)
Logger.Debug("Profiles after FilterProfilesByFocusedControl: {0}", oMatchingProfiles.Count)
oMatchingProfiles = Await Task.Run(Function() oProfileFilter.FilterProfilesBySearchResults(oMatchingProfiles))
Logger.Debug("Profiles after FilterProfilesBySearchResults: {0}", oMatchingProfiles.Count)