Symfony2 Monologue are just a few exceptions

I use Monolog in a Symfony2 project, and I get tired of seeing emails with exceptions due to Access Denied and a few other cases that I'm not interested in (there are automatic requests that cause this).

Is there a way to specify a callback for Monologue that returns true / false depending on whether I want to send it by email?

+4
source share
1 answer

As far as I know, you should override ExceptionListener and take control of your own hands. After this redefinition process, you can send what you want to send by e-mail.

+1
source

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


All Articles