• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Error reporting sending to email

#1
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?
Reply

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

#3
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.
Reply

#4
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
What did you Try? What did you Get? What did you Expect?

Joined CodeIgniter Community 2009.  ( Skype: insitfx )
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.