I'm building an api app. In the old ASP.NET there was Application_Error() to catch all unhandled exceptions
protected void Application_Error()
{
var exception = Server.GetLastError();
_logger.FatalException("Fatal error.", exception);
}
What should be used in ASP.NET 5?