Update log.php

This commit is contained in:
Anyon 2019-04-10 09:42:19 +08:00
parent a5ba65d9c9
commit 53c4565cda

View File

@ -13,8 +13,12 @@
// +----------------------------------------------------------------------
return [
'type' => 'file',
'max_files' => '500',
'level' => ['error', 'alert', 'sql'],
'apart_level' => ['error', 'alert', 'sql'],
// 启用JSON日志
'json' => true,
// 设置日志文件名
'single' => 'signle',
// 最多保留100个文件
'max_files' => 50,
// 日志每10兆分割文件
'file_size' => 10485760,
];