【发布时间】:2018-09-20 20:14:00
【问题描述】:
页面在 codeigniter 项目中显示此错误,但日志文件未生成错误
这是我第一次体验日志记录功能 所以我不知道如何产生错误
A PHP Error was encountered
Severity: Notice
Message: Undefined variable: bottomstatus
Filename: views/template.php
Line Number: 65
Backtrace:
File: D:\xampp\htdocs\timehubzone\application\views\template.php
Line: 65
Function: _error_handler
codeigniter 错误状态
$config['log_threshold'] = 1;
$config['log_path'] = '';
$config['log_file_extension'] = '';
【问题讨论】:
-
codeigniter 有自己的函数自动生成我们只需 $config['log_threshold'] = 1;将 logtreshold 默认设置为 0 并调整为 1 然后生成错误
-
在我的情况下这个功能不起作用我不知道哪里缺少任何东西
-
是页面显示未定义变量:bottomstatus 请阅读这三个stackoverflow.com/questions/32325471/log-file-in-codeigniter
-
要保存日志文件的目录需要是可写的。
-
您查看日志文件夹了吗?
标签: codeigniter error-handling