如何获取 CodeIgniter 应用程序的转储文件?

How to get dump file of CodeIgniter application?

我对 PHP CodeIgniter 框架中的转储有一些疑问:

启用错误记录的所有步骤是什么?
如何创建系统转储?
必须手动完成吗?

CodeIgniter 内置了一些错误记录功能。

启用日志记录这样做

1.Make 你的 /application/logs 文件夹是可写的,如果不能的话

2.In /application/config/config.php 设置

 $config['log_threshold'] = 1;

3.Now 记录错误使用这样的东西:

 if ($some_var == '')
 {
    log_message('error', 'Some variable did not contain a value.');
 }
 else
 {
    log_message('debug', 'Some variable was correctly set');
 }
 log_message('info', 'The purpose of some variable is to provide some value.');
  1. 转到日志文件夹,会有一个文件显示您的错误

更多信息:

https://www.codeigniter.com/user_guide/general/errors.html