gpt4 book ai didi

codeigniter - codeigniter日志记录功能未生成消息

转载 作者:行者123 更新时间:2023-12-03 08:47:50 28 4
gpt4 key购买 nike

页面在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

代码点火器错误状态
$config['log_threshold'] = 1;
$config['log_path'] = '';
$config['log_file_extension'] = '';

最佳答案

为了也记录通知-您必须提高阈值

代替

$config['log_threshold'] = 1;

您只需将其更改为
$config['log_threshold'] = 2;

Be aware, this isn't useful for production environments - because your log file will get to big. You will find more information at the Codeigniter Documentation and at this SO post answered by Narf: CodeIgniter 3 - configuring log_threshold

关于codeigniter - codeigniter日志记录功能未生成消息,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49766673/

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com