Because I needed a better handle of Symfony2 logging and error handling, I wrote a simple bundle for the task called xi-error-bundle. Bundle has a few goals:
- Better exception/error logging
- Assertion component
- Error message handling depending on environment
More information at Github. Pull requests and comments are of course very welcome.