标签: 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);
但我有兴趣使用像这样的本地变量添加自定义表。