Logging extra fields with Elmah Error Table?

Posted by VJ on Stack Overflow See other posts from Stack Overflow or by VJ
Published on 2010-05-10T22:39:25Z Indexed on 2010/05/10 22:44 UTC
Read the original article Hit count: 348

Filed under:
|
|
|

I want to add my own session variable to elmah error log table and display it. I already have modified the source code and added the new fields to Error.cs and other fields but I don't know but when I assign an HttpContext.Current.Session["MyVar"].tostring() value to my field in the constructor it stops logging exceptions and does not log any exception. I just need to get the value of the session variable is there other way for this. I read a post which he added fields for the email but it does not say where exactly should I get the session value.

© Stack Overflow or respective owner

Related posts about elmah

Related posts about custom-fields