diff options
| author | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-26 12:54:09 +0200 |
|---|---|---|
| committer | Roy Ben-Shabat <Roy@Twine-s.com> | 2019-03-26 12:54:09 +0200 |
| commit | 7dbd32ddcf6611dec88ef56336b364110b019571 (patch) | |
| tree | 9cb2ed657787d907b6bbd7695aafa244bba886ee /Software/Visual_Studio/Tango.Web/TangoWebApplication.cs | |
| parent | 0aaf60dbc0322abc6707b5cf057d797fc26a1734 (diff) | |
| download | Tango-7dbd32ddcf6611dec88ef56336b364110b019571.tar.gz Tango-7dbd32ddcf6611dec88ef56336b364110b019571.zip | |
A lot of work !!!!
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 { |
