dongsuoxi1790 2015-08-12 01:03
浏览 76

Codeigniter不生成其日志文件

I am running codeigniter framework and I've come across a peculiar problem. Even though I have turned logging 'on', no log files are being generated.

Looking at responses to similar questions on this forum, I did the following:

  • Created a new folder with 777 permissions and "apache" as the owner
  • Specified this folder as the logging destination
  • Set logging threshold as 4

Below are the excerpts from the settings file:

*/
$config['log_threshold'] = 4;
$config['log_path'] = '/logtest/';
/*

Here are the permissions details of the log directory:
drwxrwxrwx. 2 apache apache 6 8月 12 09:28 logtest

Even with these settings I'm not seeing any files being generated in the log folder. Could someone please guide me on how to fix this, or direct me to settings that I should be looking at?

Edit: I'm running version 2.2.0 of CodeIgniter

Thanks,

  • 写回答

1条回答 默认 最新

  • douyan2680 2015-11-07 03:59
    关注

    Keep in mind that you have set your log_path to the root of your hardisk. Try:

    $config['log_path'] = BASEPATH.'logtest';
    
    评论

报告相同问题?

悬赏问题

  • ¥100 set_link_state
  • ¥15 虚幻5 UE美术毛发渲染
  • ¥15 CVRP 图论 物流运输优化
  • ¥15 Tableau online 嵌入ppt失败
  • ¥100 支付宝网页转账系统不识别账号
  • ¥15 基于单片机的靶位控制系统
  • ¥15 真我手机蓝牙传输进度消息被关闭了,怎么打开?(关键词-消息通知)
  • ¥15 装 pytorch 的时候出了好多问题,遇到这种情况怎么处理?
  • ¥20 IOS游览器某宝手机网页版自动立即购买JavaScript脚本
  • ¥15 手机接入宽带网线,如何释放宽带全部速度