设置日志记录

This commit is contained in:
2025-08-30 11:31:14 +08:00
parent 599db0a6c8
commit c9bf18dd21

View File

@@ -174,6 +174,8 @@ return [
'level' => [], 'level' => [],
'apart_level' => ['sql'],//配置单独的文件正常我们建议把sql语句放在单独的文件中 'apart_level' => ['sql'],//配置单独的文件正常我们建议把sql语句放在单独的文件中
'max_files'=>100,//最大保存日志数超过tp将自动清理 'max_files'=>100,//最大保存日志数超过tp将自动清理
'close'=>false,//是否关闭日志写入
'json'=>true,//json格式日志开启
], ],
// +---------------------------------------------------------------------- // +----------------------------------------------------------------------
// | Trace设置 开启 app_trace 后 有效 // | Trace设置 开启 app_trace 后 有效