This commit is contained in:
你的名字
2025-07-14 10:22:40 +08:00
commit 0483b4b364
1388 changed files with 219353 additions and 0 deletions

27
config/log.php Executable file
View File

@ -0,0 +1,27 @@
<?php
// +----------------------------------------------------------------------
// | ThinkAdmin
// +----------------------------------------------------------------------
// | 版权所有 2014~2019 广州楚才信息科技有限公司 [ http://www.cuci.cc ]
// +----------------------------------------------------------------------
// | 官方网站: http://demo.thinkadmin.top
// +----------------------------------------------------------------------
// | 开源协议 ( https://mit-license.org )
// +----------------------------------------------------------------------
// | gitee 代码仓库3https://gitee.com/zoujingli/ThinkAdmin
// | github 代码仓库3https://github.com/zoujingli/ThinkAdmin
// +----------------------------------------------------------------------
return [
// 设置日志文件名
'single' => 'single',
// 最多保留50个文件
'max_files' => 50,
// 日志每10兆分割文件
'file_size' => 10485760,
// 设置记录目录的类型
// 'level' => ['error'],
// 日志类型分别写入文件
'apart_level' => ['error', 'sql'],
];