CodeIgniter Forums
Error reporting sending to email - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Error reporting sending to email (/showthread.php?tid=71206)



Error reporting sending to email - Stewart Shram - 07-19-2018

I am about to change my environment from development to production, however I still want to be made aware of any errors that may popup for any reason.

I don't want the end user to get a php error on their screen however I would like to receive an email reporting the error so I can fix quickly.

Is there a way to catch any error with a class extension?


RE: Error reporting sending to email - Pertti - 07-19-2018

You could keep error log file enabled and still have access to errors regardless if they are shown to visitors or not.


RE: Error reporting sending to email - Stewart Shram - 07-19-2018

Hi Pertti,

Thanks for your reply

I probably will keep the error log file enabled.

If there is an error though I need to be advised as soon as the error happens I don't really want to have to go in to the error lof file every day to check if there was an error or not.


RE: Error reporting sending to email - InsiteFX - 07-19-2018

Here is an extended library for sending emails to you.

You will need to change the constructor to the new type.

Email log messages library in CodeIgniter