I'm not quite sure, but I think you are mixing two things together.
error_reporting in php settings displays errors created at runtime by PHP script. If you use "desplay_errors" = Off. PHP will not show any of these errors. You turned on log_errors and set the folder. Thus, the PHP error will fall into the file / var / log / php _errors.log.
CodeIgniter, on the other hand, uses the function:
log_message('level,'message')
which is used to store errors / debug / info in the log files. If you call
log_message('error','I'm an error!')
somewhere in your code, you really should have a new log file in the log directory.
Internaly CodeIgniter uses log_message () if there are PHP errors. I'm really not sure how it will behave as long as display_error is set to Off (will it think there was no error?).
Try calling your own log_message and turn display_errors on . I think this should help.
source share