From 97e1ab470a59da5d10c0bfd42826a62d205fe380 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=91=E6=9E=97?= Date: Wed, 19 Apr 2023 15:35:57 +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 | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/kiri-engine/Abstracts/Logger.php b/kiri-engine/Abstracts/Logger.php index f32aab4f..35613401 100644 --- a/kiri-engine/Abstracts/Logger.php +++ b/kiri-engine/Abstracts/Logger.php @@ -14,16 +14,16 @@ use Symfony\Component\Console\Output\OutputInterface; /** - * @method static emergency(string $message, array $context = []) - * @method static alert(string $message, array $context = []) - * @method static critical(string $message, array $context = []) - * @method static error(string $message, array $context = []) - * @method static waring(string $message, array $context = []) - * @method static notice(string $message, array $context = []) - * @method static info(string $message, array $context = []) - * @method static debug(string $message, array $context = []) - * @method static log(mixed $level, string $message, array $context = []) - * @method static flush() + * @method static _emergency(string $message, array $context = []) + * @method static _alert(string $message, array $context = []) + * @method static _critical(string $message, array $context = []) + * @method static _error(string $message, array $context = []) + * @method static _waring(string $message, array $context = []) + * @method static _notice(string $message, array $context = []) + * @method static _info(string $message, array $context = []) + * @method static _debug(string $message, array $context = []) + * @method static _log(mixed $level, string $message, array $context = []) + * @method static _flush() */ class Logger implements LoggerInterface { @@ -85,7 +85,7 @@ class Logger implements LoggerInterface public static function __callStatic(string $name, array $arguments) { // TODO: Implement __callStatic() method. - Kiri::getLogger()->{$name}(...$arguments); + Kiri::getLogger()->{'_' . $name}(...$arguments); }