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