diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-06-16 16:00:50 +0200 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2021-06-16 16:00:50 +0200 |
| commit | 5115f379fc240b1250220910b14d69bb27a32c1e (patch) | |
| tree | 1818ebcf5f2f5bd2f9730d85391217fcd1038c92 /Samples/DebugLogAnalyzer/src/Program.cs | |
| parent | 58e1683bdbe1c169a1ab18b170283f8d171049a7 (diff) | |
using try/finally to ensure mutexes release
Diffstat (limited to 'Samples/DebugLogAnalyzer/src/Program.cs')
| -rw-r--r-- | Samples/DebugLogAnalyzer/src/Program.cs | 16 |
1 files changed, 3 insertions, 13 deletions
diff --git a/Samples/DebugLogAnalyzer/src/Program.cs b/Samples/DebugLogAnalyzer/src/Program.cs index 8cee874a..13e0234d 100644 --- a/Samples/DebugLogAnalyzer/src/Program.cs +++ b/Samples/DebugLogAnalyzer/src/Program.cs @@ -21,8 +21,7 @@ namespace DebugLogAnalyzer static void Main (string [] args) { - DbgLogger.IncludeEvents = DbgEvtType.None; - DbgLogger.DiscardEvents = DbgEvtType.All; + initDebugLog (); using (Program app = new Program ()) { CurrentProgramInstance = app; @@ -195,15 +194,6 @@ namespace DebugLogAnalyzer } public List<DbgWidgetEvent> CurWidgetRootEvents => curWidget == null? new List<DbgWidgetEvent>() : curWidget.RootEvents; - public bool DebugLogToFile { - get => Configuration.Global.Get<bool> (nameof(DebugLogToFile)); - set { - if (DbgLogger.ConsoleOutput != value) - return; - Configuration.Global.Set (nameof(DebugLogToFile), value); - NotifyValueChanged(DebugLogToFile); - } - } /*public string DebugLogFilePath { get => Configuration.Global.Get<string> (nameof (DebugLogFilePath)); set { @@ -216,8 +206,8 @@ namespace DebugLogAnalyzer public bool DebugLogOnStartup { get => Configuration.Global.Get<bool> (nameof(DebugLogOnStartup)); set { - if (DbgLogger.ConsoleOutput != value) - return; + if (DebugLogOnStartup == value) + return; Configuration.Global.Set (nameof(DebugLogOnStartup), value); NotifyValueChanged(DebugLogOnStartup); } |