CodeIgniter Forums

Full Version: How to do error logging in CodeIgniter (PHP)
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I want error logging in PHP CodeIgniter. How do I enable error logging?
I have some questions:
  1. What are all the steps to log an error?

  2. How is an error log file created?

  3. How to push the error message into log file (whenever an error occurs)?

  4. How do you e-mail that error to an email address?
There is a built-in function to log errors called log_message Read about it HERE.

There is additional information about error handling on that page.
There is not any built-in mechanism to email logged errors though.