【发布时间】:2023-03-30 12:44:01
【问题描述】:
使用 ELMAH(非常棒)时,可以查看您添加到异常中的额外信息。
例如
Exception ex = new Exception("New exception to use ErrorSignal functionality");
ex.Data.Add("ExtraInfo", "Here is some extra information i would like to be displayed.");
ErrorSignal.FromCurrentContext().Raise(ex);
当我从 elmah.axd 查看异常时,它似乎没有显示“ExtraInfo”键和值信息,只是显示异常字符串。
【问题讨论】:
标签: elmah