From 1bf6f9cd0c510d139dc60bde5f70f2a1d443c7fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=88=90=E6=B6=9B?= <915129420@qq.com> Date: Thu, 26 Sep 2024 10:14:15 +0800 Subject: [PATCH] Update logger.md (#7036) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: 李铭昕 <715557344@qq.com> --- docs/en/logger.md | 18 +++++++++--------- docs/zh-cn/logger.md | 18 +++++++++--------- docs/zh-hk/logger.md | 18 +++++++++--------- docs/zh-tw/logger.md | 18 +++++++++--------- 4 files changed, 36 insertions(+), 36 deletions(-) diff --git a/docs/en/logger.md b/docs/en/logger.md index 4e75c5793..ac930b639 100644 --- a/docs/en/logger.md +++ b/docs/en/logger.md @@ -21,7 +21,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => \Monolog\Logger::DEBUG, + 'level' => \Monolog\Level::Debug, ], ], 'formatter' => [ @@ -212,7 +212,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => 'php://stdout', - 'level' => \Monolog\Logger::INFO, + 'level' => \Monolog\Level::Info, ], ], 'formatter' => $formatter, @@ -240,7 +240,7 @@ return [ 'class' => Monolog\Handler\RotatingFileHandler::class, 'constructor' => [ 'filename' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Monolog\Logger::DEBUG, + 'level' => Monolog\Level::Debug, ], ], 'formatter' => [ @@ -270,7 +270,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -279,7 +279,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], 'formatter' => [ 'class' => Formatter\LineFormatter::class, @@ -294,7 +294,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], 'formatter' => [ 'class' => Formatter\JsonFormatter::class, @@ -318,7 +318,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -330,7 +330,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], ], 'formatter' => [ @@ -348,7 +348,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], ], 'formatter' => [ diff --git a/docs/zh-cn/logger.md b/docs/zh-cn/logger.md index 818125c90..8678fc788 100644 --- a/docs/zh-cn/logger.md +++ b/docs/zh-cn/logger.md @@ -21,7 +21,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => \Monolog\Logger::DEBUG, + 'level' => \Monolog\Level::Debug, ], ], 'formatter' => [ @@ -211,7 +211,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => 'php://stdout', - 'level' => \Monolog\Logger::INFO, + 'level' => \Monolog\Level::Info, ], ], 'formatter' => $formatter, @@ -239,7 +239,7 @@ return [ 'class' => Monolog\Handler\RotatingFileHandler::class, 'constructor' => [ 'filename' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Monolog\Logger::DEBUG, + 'level' => Monolog\Level::Debug, ], ], 'formatter' => [ @@ -268,7 +268,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -277,7 +277,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], 'formatter' => [ 'class' => Formatter\LineFormatter::class, @@ -292,7 +292,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Info, ], 'formatter' => [ 'class' => Formatter\JsonFormatter::class, @@ -315,7 +315,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -327,7 +327,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], ], 'formatter' => [ @@ -345,7 +345,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Info, ], ], 'formatter' => [ diff --git a/docs/zh-hk/logger.md b/docs/zh-hk/logger.md index 5b2c1f28a..58568be2f 100644 --- a/docs/zh-hk/logger.md +++ b/docs/zh-hk/logger.md @@ -21,7 +21,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => \Monolog\Logger::DEBUG, + 'level' => \Monolog\Level::Debug, ], ], 'formatter' => [ @@ -211,7 +211,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => 'php://stdout', - 'level' => \Monolog\Logger::INFO, + 'level' => \Monolog\Level::Info, ], ], 'formatter' => $formatter, @@ -239,7 +239,7 @@ return [ 'class' => Monolog\Handler\RotatingFileHandler::class, 'constructor' => [ 'filename' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Monolog\Logger::DEBUG, + 'level' => Monolog\Level::Debug, ], ], 'formatter' => [ @@ -268,7 +268,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -277,7 +277,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], 'formatter' => [ 'class' => Formatter\LineFormatter::class, @@ -292,7 +292,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], 'formatter' => [ 'class' => Formatter\JsonFormatter::class, @@ -315,7 +315,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -327,7 +327,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], ], 'formatter' => [ @@ -345,7 +345,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], ], 'formatter' => [ diff --git a/docs/zh-tw/logger.md b/docs/zh-tw/logger.md index a2414e9fc..00cc79645 100644 --- a/docs/zh-tw/logger.md +++ b/docs/zh-tw/logger.md @@ -21,7 +21,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => \Monolog\Logger::DEBUG, + 'level' => \Monolog\Level::Debug, ], ], 'formatter' => [ @@ -211,7 +211,7 @@ return [ 'class' => \Monolog\Handler\StreamHandler::class, 'constructor' => [ 'stream' => 'php://stdout', - 'level' => \Monolog\Logger::INFO, + 'level' => \Monolog\Level::Info, ], ], 'formatter' => $formatter, @@ -239,7 +239,7 @@ return [ 'class' => Monolog\Handler\RotatingFileHandler::class, 'constructor' => [ 'filename' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Monolog\Logger::DEBUG, + 'level' => Monolog\Level::Debug, ], ], 'formatter' => [ @@ -268,7 +268,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -277,7 +277,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], 'formatter' => [ 'class' => Formatter\LineFormatter::class, @@ -292,7 +292,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], 'formatter' => [ 'class' => Formatter\JsonFormatter::class, @@ -315,7 +315,7 @@ declare(strict_types=1); use Monolog\Handler; use Monolog\Formatter; -use Monolog\Logger; +use Monolog\Level; return [ 'default' => [ @@ -327,7 +327,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf.log', - 'level' => Logger::INFO, + 'level' => Level::Info, ], ], 'formatter' => [ @@ -345,7 +345,7 @@ return [ 'class' => Handler\StreamHandler::class, 'constructor' => [ 'stream' => BASE_PATH . '/runtime/logs/hyperf-debug.log', - 'level' => Logger::DEBUG, + 'level' => Level::Debug, ], ], 'formatter' => [