PHP Logging error messages PHP Logging error messages codeigniter codeigniter

PHP Logging error messages


Probably the better option is to extend the CI logging system with your own functionality if you want to do this. The CI logging is pretty good, and it also logs your PHP errors if you want. Besides that, when extending, you can easily add options to it like:

  • Saving the data to the database
  • Sending an e-mail with the log information to yourself

There are good examples to do things like that, e.g.:

You can also adjust an example like that to also save the information to your database, or whatever you want to do with it..