diff options
Diffstat (limited to 'src/DotNetOpenId.TestWeb/Global.asax')
-rw-r--r-- | src/DotNetOpenId.TestWeb/Global.asax | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/DotNetOpenId.TestWeb/Global.asax b/src/DotNetOpenId.TestWeb/Global.asax index 34f8aab..74cbe57 100644 --- a/src/DotNetOpenId.TestWeb/Global.asax +++ b/src/DotNetOpenId.TestWeb/Global.asax @@ -1,11 +1,12 @@ <%@ Application Language="C#" %>
<script RunAt="server">
+ public static log4net.ILog Logger = log4net.LogManager.GetLogger(typeof(global_asax));
void Application_Error(object sender, EventArgs e) {
// Code that runs when an unhandled error occurs
Exception ex = HttpContext.Current.Error;
- System.Diagnostics.Trace.WriteLine(ex.ToString());
+ Logger.Error(ex.ToString());
}
</script>
|