ELMAH and ASP.NET MVC errors are not logged

I am trying to use ELMAH to log errors, and I have tried several others

None of them can log errors when ASP.NET custom error function is enabled.

I use the [HandleError] attribute in all my controllers, at first I thought it was a problem, but not only when I include custom error pages, it does not register any errors, even if half of these errors are the logs that they assume.

What am I doing wrong?

+3
source share
2 answers

, , HttpModule, ELMAH. , .

+5

- ErrorPage . web.config( cUstomErrors) , elmah . . , .

+1

Source: https://habr.com/ru/post/1706684/


All Articles