【发布时间】:2015-12-18 13:11:47
【问题描述】:
我正在使用以下配置的 codeigniter 记录器:
$config['log_threshold'] = 4;
这些是 application/config/config.php 中使用的 5 个阈值
0 = Disables logging, Error logging TURNED OFF
1 = Error Messages (including PHP errors)
2 = Debug Messages
3 = Informational Messages
4 = All Messages
我只想使用阈值 1 和 3。 如果我在阈值中使用 4,我可以打印带有许多调试消息的日志消息。这些调试消息将填满我的服务器空间。所以我想禁用这个调试模式。
我使用的是 codeigniter 2.2.0 版
这是我的日志文件:
DEBUG - 2015-09-14 17:17:22 --> Config Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Hooks Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Utf8 Class Initialized
DEBUG - 2015-09-14 17:17:22 --> UTF-8 Support Enabled
DEBUG - 2015-09-14 17:17:22 --> URI Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Router Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Output Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Security Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Input Class Initialized
DEBUG - 2015-09-14 17:17:22 --> Global POST and COOKIE data sanitized
【问题讨论】:
标签: codeigniter