How to do error logging in CodeIgniter (PHP) |
CodeIgniter has some error logging functions built-in. CodeIgniter error logging is mostly relatable to php error logging if you want to create it through code.
Make your /application/logs folder writable In /application/config/config.php set $config['log_threshold'] = 1; or use a higher number, depending on how much detail you want in your logs Use log_message('error', 'Some variable did not contain a value.'); To send an email you need to extend the core CI_Exceptions class method log_exceptions(). |
Messages In This Thread |
How to do error logging in CodeIgniter (PHP) - by nathanjame - 05-08-2018, 10:15 AM
RE: How to do error logging in CodeIgniter (PHP) - by InsiteFX - 05-08-2018, 11:10 AM
RE: How to do error logging in CodeIgniter (PHP) - by dave friend - 05-08-2018, 11:10 AM
RE: How to do error logging in CodeIgniter (PHP) - by adamparker1 - 02-06-2021, 03:06 AM
|