How to log all thrown exceptions?

前端 未结 8 2063
一个人的身影
一个人的身影 2020-11-29 07:55

How to log any exceptions that were thrown and catched? Something like Visual Studio\'s IntelliTrace do. Or is there a way to integrate InteliTrace into debug version of app

8条回答
  •  独厮守ぢ
    2020-11-29 08:53

    For handled exceptions you'd most likely need to log them explicitly. Even if that's not the case semantically there's a huge difference to handled and unhandled exceptions.

    Handled exceptions are no longer an exceptional situation. Some one writing the code said. I know how to handle this exception and proceed correctly afterwards.

    For unhandled exceptions have a look at Elmah

提交回复
热议问题