From cc2e91576aa07b274c3ec8bf3e87e820e9a0f28d Mon Sep 17 00:00:00 2001 From: april2 <13740363+aprchen@users.noreply.github.com> Date: Sat, 9 Jun 2018 21:52:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=9F=E4=B8=80=E6=97=A5=E5=BF=97=E6=97=A5?= =?UTF-8?q?=E6=9C=9F=E6=A0=BC=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 与swoole日志格式统一,方便日志采集 --- src/Bootstrap/CoreBean.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Bootstrap/CoreBean.php b/src/Bootstrap/CoreBean.php index 8c94bc79..6120387a 100644 --- a/src/Bootstrap/CoreBean.php +++ b/src/Bootstrap/CoreBean.php @@ -51,8 +51,8 @@ public function beans() 'lineFormatter' => [ 'class' => LineFormatter::class, 'format' => '%datetime% [%level_name%] [%channel%] [logid:%logid%] [spanid:%spanid%] %messages%', - 'dateFormat' => 'Y/m/d H:i:s', + 'dateFormat' => 'Y-m-d H:i:s', ], ]; } -} \ No newline at end of file +}