From 44807f2ae49ba53ff8e21cd88b97fc9e7bde43e4 Mon Sep 17 00:00:00 2001 From: Anyon Date: Thu, 9 Jan 2020 16:44:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=85=8D=E7=BD=AE=E5=90=8C?= =?UTF-8?q?=E6=AD=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/log.php | 10 ++++++++-- config/session.php | 1 - config/view.php | 2 +- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/config/log.php b/config/log.php index d8c2594bb..58478fb45 100644 --- a/config/log.php +++ b/config/log.php @@ -33,11 +33,17 @@ return [ 'path' => '', // 单文件日志写入 'single' => true, + // 指定日志类型 + 'level' => ['error', 'alert', 'sql'], // 独立日志级别 'apart_level' => ['error', 'sql'], + // 每个文件大小 ( 10兆 ) + 'file_size' => 1024 * 1024 * 10, + // 日志日期格式 + 'time_format' => 'Y-m-d H:i:s', // 最大日志文件数量 - 'max_files' => 200, - // 使用JSON格式记录php + 'max_files' => 100, + // 使用JSON格式记录 'json' => false, // 日志处理 'processor' => null, diff --git a/config/session.php b/config/session.php index 6ed846fbe..8ceab7112 100644 --- a/config/session.php +++ b/config/session.php @@ -14,7 +14,6 @@ // +---------------------------------------------------------------------- return [ - // 'name' => 's' . substr(md5(__DIR__), -8), 'type' => 'file', 'store' => null, 'expire' => 1800, diff --git a/config/view.php b/config/view.php index 8628ef0ef..bee8cc89b 100644 --- a/config/view.php +++ b/config/view.php @@ -38,7 +38,7 @@ return [ 'taglib_end' => '}', // 定义模板替换字符串 'tpl_replace_string' => [ - '__APP__' => rtrim(url('@'), '\\/'), + '__APP__' => rtrim(url('@')->build(), '\\/'), '__ROOT__' => rtrim(dirname(request()->basefile()), '\\/'), '__PUBLIC__' => rtrim(dirname(request()->basefile(true)), '\\/'), ],