I am working on a project where we needed to capture exceptions at a global level instead of doing it at every step as they were not critical, but important for us to know.
The idea was that whenever such an exception occur on production we should send an email to developers mailing list so that someone can investigate it.
As usual I did a quick google search and i found two forum posts in CodeIgniter and one on stackoverflow, but they all fall short as CodeIgniter does not set’s any default exception handlers they way it sets the native error handler.
So here is a quick tutorial on how you can do that.
(more…)