您可以通过 enalbing 轻松检查整个环境中发生的情况CI logs
,
去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'] = 0; //put this to 4
/logs
然后,如果您的 /application 文件夹中还没有文件夹,请创建该文件夹并将其添加775 chmod
到该文件夹(仅限日志文件夹)。
更新: 您还必须chown apache:apache logs
为了让 apache 能够在该文件夹中写入。
通过浏览器运行您的应用程序并在您/logs
的文件夹中检查该log.php
文件,它将包含all the application errors
.