どうすればこのようになるのですか?異なるページで発生するASP.netのログ記録エラー
protected void Page_Load(object sender, EventArgs e)
{
try
{
doSomething();
}
catch (Exception ex)
{
// Here i would like to know that the page is "Problem.aspx"
// and that it was caused from the doSomething() function
}
}
private void doSomething()
{
logToSomething();
}
Enterprise Library Loggingブロックを設定することができるので、不要なコードがたくさんあります。すべて完了しました。 – Kon