ThinkAdmin/config/log.php
2019-07-06 18:57:21 +08:00

28 lines
1.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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