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?
source share