I want to catch all errors in the production environment and send them to the Sentry. But I can\'t understand how to add it as a middleware. Do I need to write a custom logger t