Error registering in the OWIN host

Is there an easy way to have a kind of global error trap that logs all raw errors in a web API supported by OWIN? For example, when you declare a global error trap in Global.asax. I have to say that the Microsoft.Owin.Logging namespace documentation is pretty thin.

I tested these excellent samples on OWIN here . But I still have to catch the exception and call the logger.

+6
source share

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


All Articles