[eluser]beatryder[/eluser]
The logging system seems broken to me:
Quote:| If you have enabled error logging, you can set an error threshold to
| determine what gets logged. Threshold options are:
| You can enable error logging by setting a threshold over zero. The
| threshold determines what gets logged. Threshold options are:
|
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Debug Messages
| 3 = Informational Messages
| 4 = All Messages
I have
Code:
$config['log_threshold'] = 3;
And I expect to only see "info" level messages, but instead I am seeing everything, debug messages, info and error messages.
The same goes if I use level 2, I not only see DEBUG but ERROR as well.
Perhaps I don't understand the design idea here, but it seems to me that the order should be:
| 0 = Disables logging, Error logging TURNED OFF
| 1 = Error Messages (including PHP errors)
| 2 = Informational Messages
| 3 = Debug Messages
| 4 = All Messages
Furthermore, level 4 is totally redundant. Since level 3 does the same thing.
Am I crazy?
Also note that I am using code like
Code:
log_message('debug','Something happened here');
with level 3 set and I am still seeing DEBUG and ERROR Messages, which is not what I expect to see.