monolog升级到3.7并把Monolog\Logger替换为Monolog\Level

This commit is contained in:
wandoubaba 2024-07-19 12:33:59 +08:00
parent cbe902e370
commit 004e140804
4 changed files with 21 additions and 22 deletions

0
composer Normal file → Executable file
View File

View File

@ -26,7 +26,7 @@
"require": { "require": {
"php": ">=7.2", "php": ">=7.2",
"workerman/webman-framework": "^1.5.0", "workerman/webman-framework": "^1.5.0",
"monolog/monolog": "^2.0" "monolog/monolog": "^3.5"
}, },
"suggest": { "suggest": {
"ext-event": "For better performance. " "ext-event": "For better performance. "

39
composer.lock generated
View File

@ -4,46 +4,45 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically" "This file is @generated automatically"
], ],
"content-hash": "6ec3c93a41026fd9ff565142f2ec2413", "content-hash": "c02c3a666509c2442d4834e05169b0ea",
"packages": [ "packages": [
{ {
"name": "monolog/monolog", "name": "monolog/monolog",
"version": "2.9.3", "version": "3.7.0",
"source": { "source": {
"type": "git", "type": "git",
"url": "https://github.com/Seldaek/monolog.git", "url": "https://github.com/Seldaek/monolog.git",
"reference": "a30bfe2e142720dfa990d0a7e573997f5d884215" "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8"
}, },
"dist": { "dist": {
"type": "zip", "type": "zip",
"url": "https://api.github.com/repos/Seldaek/monolog/zipball/a30bfe2e142720dfa990d0a7e573997f5d884215", "url": "https://api.github.com/repos/Seldaek/monolog/zipball/f4393b648b78a5408747de94fca38beb5f7e9ef8",
"reference": "a30bfe2e142720dfa990d0a7e573997f5d884215", "reference": "f4393b648b78a5408747de94fca38beb5f7e9ef8",
"shasum": "" "shasum": ""
}, },
"require": { "require": {
"php": ">=7.2", "php": ">=8.1",
"psr/log": "^1.0.1 || ^2.0 || ^3.0" "psr/log": "^2.0 || ^3.0"
}, },
"provide": { "provide": {
"psr/log-implementation": "1.0.0 || 2.0.0 || 3.0.0" "psr/log-implementation": "3.0.0"
}, },
"require-dev": { "require-dev": {
"aws/aws-sdk-php": "^2.4.9 || ^3.0", "aws/aws-sdk-php": "^3.0",
"doctrine/couchdb": "~1.0@dev", "doctrine/couchdb": "~1.0@dev",
"elasticsearch/elasticsearch": "^7 || ^8", "elasticsearch/elasticsearch": "^7 || ^8",
"ext-json": "*", "ext-json": "*",
"graylog2/gelf-php": "^1.4.2 || ^2@dev", "graylog2/gelf-php": "^1.4.2 || ^2.0",
"guzzlehttp/guzzle": "^7.4", "guzzlehttp/guzzle": "^7.4.5",
"guzzlehttp/psr7": "^2.2", "guzzlehttp/psr7": "^2.2",
"mongodb/mongodb": "^1.8", "mongodb/mongodb": "^1.8",
"php-amqplib/php-amqplib": "~2.4 || ^3", "php-amqplib/php-amqplib": "~2.4 || ^3",
"phpspec/prophecy": "^1.15", "phpstan/phpstan": "^1.9",
"phpstan/phpstan": "^1.10", "phpstan/phpstan-deprecation-rules": "^1.0",
"phpunit/phpunit": "^8.5.38 || ^9.6.19", "phpstan/phpstan-strict-rules": "^1.4",
"predis/predis": "^1.1 || ^2.0", "phpunit/phpunit": "^10.5.17",
"rollbar/rollbar": "^1.3 || ^2 || ^3", "predis/predis": "^1.1 || ^2",
"ruflin/elastica": "^7", "ruflin/elastica": "^7",
"swiftmailer/swiftmailer": "^5.3|^6.0",
"symfony/mailer": "^5.4 || ^6", "symfony/mailer": "^5.4 || ^6",
"symfony/mime": "^5.4 || ^6" "symfony/mime": "^5.4 || ^6"
}, },
@ -66,7 +65,7 @@
"type": "library", "type": "library",
"extra": { "extra": {
"branch-alias": { "branch-alias": {
"dev-main": "2.x-dev" "dev-main": "3.x-dev"
} }
}, },
"autoload": { "autoload": {
@ -94,7 +93,7 @@
], ],
"support": { "support": {
"issues": "https://github.com/Seldaek/monolog/issues", "issues": "https://github.com/Seldaek/monolog/issues",
"source": "https://github.com/Seldaek/monolog/tree/2.9.3" "source": "https://github.com/Seldaek/monolog/tree/3.7.0"
}, },
"funding": [ "funding": [
{ {
@ -106,7 +105,7 @@
"type": "tidelift" "type": "tidelift"
} }
], ],
"time": "2024-04-12T20:52:51+00:00" "time": "2024-06-28T09:40:51+00:00"
}, },
{ {
"name": "nikic/fast-route", "name": "nikic/fast-route",

View File

@ -20,7 +20,7 @@ return [
'constructor' => [ 'constructor' => [
runtime_path() . '/logs/webman.log', runtime_path() . '/logs/webman.log',
7, //$maxFiles 7, //$maxFiles
Monolog\Logger::DEBUG, Monolog\Level::Debug,
], ],
'formatter' => [ 'formatter' => [
'class' => Monolog\Formatter\LineFormatter::class, 'class' => Monolog\Formatter\LineFormatter::class,