From b4d6c66ed3d24cf8ca05ec909cce9e468a14a3de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 5 Apr 2023 14:59:13 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=98=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- kiri-engine/Abstracts/Logger.php | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/kiri-engine/Abstracts/Logger.php b/kiri-engine/Abstracts/Logger.php index 40aa5922..7645b5f5 100644 --- a/kiri-engine/Abstracts/Logger.php +++ b/kiri-engine/Abstracts/Logger.php @@ -151,12 +151,11 @@ class Logger implements LoggerInterface if (!empty($context)) { $_string .= $this->_string($context); } - var_dump($_string); -// file_put_contents('php://output', $_string); -// -// $filename = storage('log-' . date('Y-m-d') . '.log', 'log/'); -// -// file_put_contents($filename, $_string, FILE_APPEND); + file_put_contents('php://output', $_string); + + $filename = storage('log-' . date('Y-m-d') . '.log', 'log/'); + + file_put_contents($filename, $_string, FILE_APPEND); }