Add a Session Variable or Custom field to the Elmah Error Log table
Posted
by VJ
on Stack Overflow
See other posts from Stack Overflow
or by VJ
Published on 2010-04-21T18:44:32Z
Indexed on
2010/05/17
20:50 UTC
Read the original article
Hit count: 688
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