Codeigniter错误日志不工作
我想记录我的详细信息以记录我的应用程序事件。因此,我对config.php进行了如下更改Codeigniter错误日志不工作,codeigniter,logging,codeigniter-2,Codeigniter,Logging,Codeigniter 2,我想记录我的详细信息以记录我的应用程序事件。因此,我对config.php进行了如下更改 $config['log_threshold'] = 4; $config['log_path'] = 'application/logs/main'; $config['log_date_format'] = 'Y-m-d H:i:s'; 我在我的控制器中这样使用它 log_message('error', 'Some variable did not contain a value.'); 我授予主
$config['log_threshold'] = 4;
$config['log_path'] = 'application/logs/main';
$config['log_date_format'] = 'Y-m-d H:i:s';
我在我的控制器中这样使用它
log_message('error', 'Some variable did not contain a value.');
我授予主文件的写入权限。它不起作用。问题是什么 日志路径应该是文件夹而不是文件。如果main是一个文件夹,那么应该添加一个尾部/日志路径应该有一个尾部斜杠,可以这么简单吗?