How to do error logging in CodeIgniter (PHP) |
CodeIgniter has some error logging functions built in.
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(). You can do this yourself or use this. More info on extending the core here |
Messages In This Thread |
How to do error logging in CodeIgniter (PHP) - by mayhutam - 10-25-2022, 12:57 AM
RE: How to do error logging in CodeIgniter (PHP) - by InsiteFX - 10-26-2022, 12:16 AM
RE: How to do error logging in CodeIgniter (PHP) - by kenjis - 10-26-2022, 12:33 AM
RE: How to do error logging in CodeIgniter (PHP) - by DunogRamers - 11-04-2022, 11:50 PM
|