Logging in PRofileFilter
This commit is contained in:
parent
7c2cf206ab
commit
8e8664b0e8
@ -89,7 +89,7 @@ Public Class ProfileFilter
|
|||||||
Dim oMatch = oRegex.Match(ClipboardContents)
|
Dim oMatch = oRegex.Match(ClipboardContents)
|
||||||
If oMatch.Success Then
|
If oMatch.Success Then
|
||||||
_Logger.Debug("FilterProfilesByClipboardRegex: Clipboard Regex Matched: {0}", ClipboardContents)
|
_Logger.Debug("FilterProfilesByClipboardRegex: Clipboard Regex Matched: {0}", ClipboardContents)
|
||||||
_Logger.Info("Profile {0} matched!", oProfile.Name)
|
_Logger.Info("FilterProfilesByClipboardRegex: Profile {0} matched!", oProfile.Name)
|
||||||
oFilteredProfiles.Add(oProfile)
|
oFilteredProfiles.Add(oProfile)
|
||||||
oProfile.IsMatched = True
|
oProfile.IsMatched = True
|
||||||
|
|
||||||
@ -128,7 +128,7 @@ Public Class ProfileFilter
|
|||||||
_Logger.Debug($"Processname Matched: {oProcess.ProcessName}")
|
_Logger.Debug($"Processname Matched: {oProcess.ProcessName}")
|
||||||
|
|
||||||
oFilteredProfiles.Add(oProfile)
|
oFilteredProfiles.Add(oProfile)
|
||||||
_Logger.Info("Profile {0} matched!", oProfile.Name)
|
_Logger.Info("FilterProfilesByProcess: Profile {0} matched!", oProfile.Name)
|
||||||
|
|
||||||
oProfile.MatchedProcessID = oProcess.Guid
|
oProfile.MatchedProcessID = oProcess.Guid
|
||||||
oProcess.IsMatched = True
|
oProcess.IsMatched = True
|
||||||
@ -195,6 +195,8 @@ Public Class ProfileFilter
|
|||||||
oProfile.MatchedWindowID = oWindowDef.Guid
|
oProfile.MatchedWindowID = oWindowDef.Guid
|
||||||
oWindowDef.IsMatched = True
|
oWindowDef.IsMatched = True
|
||||||
oWindows.Add(oWindowDef)
|
oWindows.Add(oWindowDef)
|
||||||
|
Else
|
||||||
|
_Logger.Debug("NO MATCH on WindowTitle: {0} - REGEX: {2}", WindowTitle, oWindowDef.Regex)
|
||||||
End If
|
End If
|
||||||
|
|
||||||
Dim oParent = _ProfileMatch.FindNodeByTag(_TreeView.Nodes, oWindowDef.WindowProcessID & "-PROCESS")
|
Dim oParent = _ProfileMatch.FindNodeByTag(_TreeView.Nodes, oWindowDef.WindowProcessID & "-PROCESS")
|
||||||
@ -215,7 +217,7 @@ Public Class ProfileFilter
|
|||||||
oProfile.IsMatched = True
|
oProfile.IsMatched = True
|
||||||
oProfiles.Add(oProfile)
|
oProfiles.Add(oProfile)
|
||||||
|
|
||||||
_Logger.Info("Profile {0} matched!", oProfile.Name)
|
_Logger.Info("FilterWindowsByWindowTitleRegex: Profile {0} matched!", oProfile.Name)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
@ -323,7 +325,7 @@ Public Class ProfileFilter
|
|||||||
oProfile.Controls = oMatchingControls
|
oProfile.Controls = oMatchingControls
|
||||||
oFilteredProfiles.Add(oProfile)
|
oFilteredProfiles.Add(oProfile)
|
||||||
|
|
||||||
_Logger.Info("Profile {0} matched!", oProfile.Name)
|
_Logger.Info("FilterProfilesByFocusedControl: Profile {0} matched!", oProfile.Name)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
@ -452,7 +454,7 @@ Public Class ProfileFilter
|
|||||||
oProfile.Windows = oWindows
|
oProfile.Windows = oWindows
|
||||||
oProfiles.Add(oProfile)
|
oProfiles.Add(oProfile)
|
||||||
|
|
||||||
_Logger.Info("Profile {0} matched!", oProfile.Name)
|
_Logger.Info("FilterWindowsByWindowClipboardRegex: Profile {0} matched!", oProfile.Name)
|
||||||
End If
|
End If
|
||||||
Next
|
Next
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user