From 7dbd32ddcf6611dec88ef56336b364110b019571 Mon Sep 17 00:00:00 2001 From: Roy Ben-Shabat Date: Tue, 26 Mar 2019 12:54:09 +0200 Subject: A lot of work !!!! --- Software/Visual_Studio/Tango.Web/TangoWebApplication.cs | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Software/Visual_Studio/Tango.Web') diff --git a/Software/Visual_Studio/Tango.Web/TangoWebApplication.cs b/Software/Visual_Studio/Tango.Web/TangoWebApplication.cs index f168fe9a4..a8acc419c 100644 --- a/Software/Visual_Studio/Tango.Web/TangoWebApplication.cs +++ b/Software/Visual_Studio/Tango.Web/TangoWebApplication.cs @@ -29,6 +29,15 @@ namespace Tango.Web GlobalConfiguration.Configuration.Filters.Add(new LogExceptionFilterAttribute()); } + protected void Application_Error(object sender, EventArgs e) + { + Exception exception = Server.GetLastError(); + if (exception != null) + { + LogManager.Default.Log(exception, "Global Exception!"); + } + } + //common service to be used for logging errors public static class ErrorLogService { -- cgit v1.3.1