Don’t miss 500 internal error anymore with symfony and monolog
Sometimes I read my server logs … Like some people read the newspaper, in fact server logs are like the app newspaper 🙂
Every morning I am reading my logwatch email.
But I can miss errors, and even if I see them, it is the next day in my logs email, and it is really BAD
The solution is simple, use monolog to send you errors directly
https://symfony.com/doc/current/logging/monolog_email.html
My configuration is (config_prod.yml):