diff options
Diffstat (limited to 'Software/Visual_Studio/Tango.Web/TangoWebApplication.cs')
| -rw-r--r-- | Software/Visual_Studio/Tango.Web/TangoWebApplication.cs | 9 |
1 files changed, 9 insertions, 0 deletions
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 { |
