1

エラー処理を読みましたが、使用した場合、log_message('debug', 'Hi I m in Cart Controller');またはlog_message('info', 'Hi I m in Cart Controller');メッセージがログに記録されない場合は、log_message('error', 'Hi I m in Cart Controller');

私の間違いは何ですか?

4

1 に答える 1

2

次の場所でログのしきい値を設定する必要がありますapp/config/config.php

/*
|--------------------------------------------------------------------------
| Error Logging Threshold
|--------------------------------------------------------------------------
|
| 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
|
| For a live site you'll usually only enable Errors (1) to be logged otherwise
| your log files will fill up very fast.
|
*/
$config['log_threshold'] = 2;
于 2012-11-02T08:41:47.820 に答える