【发布时间】:2015-10-20 13:27:43
【问题描述】:
好吧,我弄糊涂了。
在application/config.php 里面用 cmets 写着:
| 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
|
| You can also pass an array with threshold levels to show individual error types
|
| array(2) = Debug Messages, without Error Messages
所以如果我想得到错误和调试消息而不是任何信息消息,我是否必须设置阈值
$config['log_threshold'] = 2;
或
$config['log_threshold'] = array(1, 2);
谁能给我一些澄清?
【问题讨论】:
标签: php codeigniter codeigniter-3