mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update log.php
This commit is contained in:
parent
a5ba65d9c9
commit
53c4565cda
@ -13,8 +13,12 @@
|
|||||||
// +----------------------------------------------------------------------
|
// +----------------------------------------------------------------------
|
||||||
|
|
||||||
return [
|
return [
|
||||||
'type' => 'file',
|
// 启用JSON日志
|
||||||
'max_files' => '500',
|
'json' => true,
|
||||||
'level' => ['error', 'alert', 'sql'],
|
// 设置日志文件名
|
||||||
'apart_level' => ['error', 'alert', 'sql'],
|
'single' => 'signle',
|
||||||
|
// 最多保留100个文件
|
||||||
|
'max_files' => 50,
|
||||||
|
// 日志每10兆分割文件
|
||||||
|
'file_size' => 10485760,
|
||||||
];
|
];
|
Loading…
x
Reference in New Issue
Block a user