diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-28 11:42:21 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2018-02-28 11:42:21 +0200 |
| commit | c726e1f7697d9f0fe8cff387dc64dd00c4980b82 (patch) | |
| tree | 52d91153ee05a32a8ffcd42c4a9220cb7a517bca /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | |
| parent | 2f70caaf340063f90529c3302f2f2a78dda9d40c (diff) | |
| download | Tango-c726e1f7697d9f0fe8cff387dc64dd00c4980b82.tar.gz Tango-c726e1f7697d9f0fe8cff387dc64dd00c4980b82.zip | |
Change LogManager to Instance.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs')
| -rw-r--r-- | Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs index fb2cd5c82..57f1d704c 100644 --- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs +++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs @@ -42,6 +42,7 @@ namespace Tango.MachineStudio.UI.ViewModels private INavigationManager _navigation; private bool _isDisconnecting; private Thread _updateCheckThread; + private LogManager logManager = LogManager.Default; /// <summary> /// Gets or sets the current loaded module. @@ -248,7 +249,7 @@ namespace Tango.MachineStudio.UI.ViewModels } catch (Exception ex) { - LogManager.Log(ex, "Error in version update periodic check..."); + logManager.Log(ex, "Error in version update periodic check..."); } Thread.Sleep(TimeSpan.FromMinutes(4)); @@ -322,7 +323,7 @@ namespace Tango.MachineStudio.UI.ViewModels } catch (Exception ex) { - LogManager.Log(ex); + logManager.Log(ex); _notificationProvider.ShowError(ex.Message); } @@ -341,7 +342,7 @@ namespace Tango.MachineStudio.UI.ViewModels } catch (Exception ex) { - LogManager.Log(ex); + logManager.Log(ex); _notificationProvider.ShowError(ex.Message); } @@ -435,7 +436,7 @@ namespace Tango.MachineStudio.UI.ViewModels } catch (Exception ex) { - LogManager.Log(ex, "Error popping out module " + module.Name); + logManager.Log(ex, "Error popping out module " + module.Name); _notificationProvider.ShowError("Error popping out module " + module.Name); } } |
