From 008a0914eb9dcbd240cedaed1b753dde685a3af3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Fri, 9 Jul 2021 13:55:52 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- System/Error/Logger.php | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/System/Error/Logger.php b/System/Error/Logger.php index 58d55020..263f1e4c 100644 --- a/System/Error/Logger.php +++ b/System/Error/Logger.php @@ -91,6 +91,7 @@ class Logger extends Component */ private function writer($message, $method = 'app'): string { + return ''; $this->print_r($message, $method); if ($message instanceof Throwable) { $message = $message->getMessage(); @@ -145,7 +146,7 @@ class Logger extends Component * @param string $application * @return mixed */ - public function getLastError($application = 'app'): mixed + public function getLastError(string $application = 'app'): mixed { $filetype = []; foreach ($this->logs as $key => $val) { @@ -160,13 +161,14 @@ class Logger extends Component return end($filetype); } - /** - * @param $messages - * @param string $method - * @throws - */ - public function write(string $messages, $method = 'app') + /** + * @param string $messages + * @param string $method + * @throws Exception + */ + public function write(string $messages, string $method = 'app') { + return; if (empty($messages)) { return; }