From c726e1f7697d9f0fe8cff387dc64dd00c4980b82 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Wed, 28 Feb 2018 11:42:21 +0200 Subject: Change LogManager to Instance. --- .../Tango.MachineStudio.UI/ViewModels/MainViewVM.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/ViewModels/MainViewVM.cs') 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; /// /// 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); } } -- cgit v1.3.1