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' => [