aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
diff options
context:
space:
mode:
authorRoy Ben-Shabat <Roy@Twine-s.com>2018-03-26 14:21:53 +0300
committerRoy Ben-Shabat <Roy@Twine-s.com>2018-03-26 14:21:53 +0300
commit1061758f95b7ba633e6bcc2c3556b42f033b1a79 (patch)
treec3cf106aa6b73fe1e0bfcd6b88399a5721990eb0 /Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
parent761686de34252d76bda126c738d82c021ef6bf5d (diff)
downloadTango-1061758f95b7ba633e6bcc2c3556b42f033b1a79.tar.gz
Tango-1061758f95b7ba633e6bcc2c3556b42f033b1a79.zip
Working on logging module !
Modified PID Control Table.
Diffstat (limited to 'Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs')
-rw-r--r--Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs9
1 files changed, 8 insertions, 1 deletions
diff --git a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
index f94a6c9d9..8b3233ab1 100644
--- a/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
+++ b/Software/Visual_Studio/MachineStudio/Tango.MachineStudio.UI/App.xaml.cs
@@ -14,6 +14,7 @@ using Tango.MachineStudio.UI.Windows;
using Tango.Settings;
using Microsoft.Practices.ServiceLocation;
using Tango.MachineStudio.Common.EventLogging;
+using Tango.BL.Enumerations;
namespace Tango.MachineStudio.UI
{
@@ -49,6 +50,12 @@ namespace Tango.MachineStudio.UI
exceptionTrapper = new WpfGlobalExceptionTrapper();
exceptionTrapper.Initialize(this);
exceptionTrapper.ApplicationCrashed += ExceptionTrapper_ApplicationCrashed;
+
+ var eventLogger = ServiceLocator.Current.GetInstance<IEventLogger>();
+ if (eventLogger != null)
+ {
+ eventLogger.Log(EventTypes.ApplicationStarted, "Application Started!");
+ }
}
#region Global Exception Trapping
@@ -74,7 +81,7 @@ namespace Tango.MachineStudio.UI
var eventLogger = ServiceLocator.Current.GetInstance<IEventLogger>();
if (eventLogger != null)
{
- eventLogger.Log(e.Exception);
+ eventLogger.Log(e.Exception, "Application Crashed!");
}
}
catch { }