添加表到Elmah错误详细信息视图

时间:2013-04-16 16:01:25

标签: asp.net asp.net-mvc logging elmah

我刚开始在一个ASP.NET MVC项目中使用Elmah。我想知道是否还有一个新的表添加到错误详细信息视图,如服务器变量。 我知道如何使用以下方法向日志添加一些额外的数据:

Exception newEx = new Exception("Preview Error\n"+ article.ExceptionString(),e);
Elmah.ErrorSignal.FromCurrentContext().Raise(newEx);

但我有兴趣使用像这样的本地变量添加自定义表。 enter image description here

0 个答案:

没有答案