I'm trying to configure an email logging in Symfony. I followed the cookbook and it works but I have a problem with Fatal errors.
Those errors aren't logged in prod mode. I figured out that when I add Debug::enable();
to app.php, the error get logged, however I still don't get an email.
Here is the relevant configuration:
mail:
type: fingers_crossed
action_level: critical
handler: buffer
buffer:
type: buffer
handler: swift
swift:
type: swift_mailer
from_email: %error_mail_from%
to_email: %error_mail_to%
subject: %error_mail_subject%
level: debug