Codeigniter不创建任何日志文件 [英] Codeigniter not creating any log files

查看:85
本文介绍了Codeigniter不创建任何日志文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

config.php 我有:

$config['log_threshold'] = 4;
$config['log_path'] = '/home/myaccount/logFilesFolder';

在index.php中,我有:

In index.php I have:

error_reporting(E_ALL);

我可以看到任何东西要记录的唯一方法是如果我chmod那个目录到rwx ),这似乎不对我。

The only way I can seem to get anything to log is if I chmod that directory to rwx (777), which doesn't seem right to me. That and it doesn't see to be logging all the errors.

在我的本地/ dev环境中,它似乎是工作,但在我的生产服务器没有记录。

In my local/dev environment it seems to be working but on my production server nothing is being logged. I can't seem to figure out why.

推荐答案

配置设置中的日志文件名需要后面的/ ,确保网络服务器进程可以写入目录。

The log filename in the configuration settings needs a trailing "/" above making sure the webserver process has writeable access to the directory.

这篇关于Codeigniter不创建任何日志文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆