From 53c4565cdad91f72d6c713b591b5e8ff20405939 Mon Sep 17 00:00:00 2001 From: Anyon Date: Wed, 10 Apr 2019 09:42:19 +0800 Subject: [PATCH] Update log.php --- config/log.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/config/log.php b/config/log.php index 6db386449..e4f4861b7 100644 --- a/config/log.php +++ b/config/log.php @@ -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, ]; \ No newline at end of file