ELMAHでプログラム的にログに記録されたエラーにメッセージを追加する方法に少し混乱しています。
例えば:
public ActionResult DoSomething(int id)
{
try { ... }
catch (Exception e)
{
// I want to include the 'id' param value here, and maybe some
// other stuff, but how?
ErrorSignal.FromCurrentContext().Raise(e);
}
}
Elmahができることは、生の例外をログに記録することだけのようですが、どうすれば自分のデバッグ情報もログに記録できますか?