Merge pull request #408 from acelaya/feature/improve-logs

Renamed Swoole logger to Access logger
This commit is contained in:
Alejandro Celaya 2019-05-13 19:30:39 +02:00 committed by GitHub
commit c104eee2b1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 8 deletions

View File

@ -55,8 +55,8 @@
"filp/whoops": "^2.0", "filp/whoops": "^2.0",
"infection/infection": "^0.12.2", "infection/infection": "^0.12.2",
"phpstan/phpstan": "^0.11.2", "phpstan/phpstan": "^0.11.2",
"phpunit/phpcov": "^6.0 || ^5.0", "phpunit/phpcov": "^6.0",
"phpunit/phpunit": "^8.0 || ^7.5", "phpunit/phpunit": "^8.0",
"roave/security-advisories": "dev-master", "roave/security-advisories": "dev-master",
"shlinkio/php-coding-standard": "~1.1.0", "shlinkio/php-coding-standard": "~1.1.0",
"symfony/dotenv": "^4.2", "symfony/dotenv": "^4.2",

View File

@ -28,7 +28,7 @@ return [
'max_files' => 30, 'max_files' => 30,
'formatter' => 'dashed', 'formatter' => 'dashed',
], ],
'swoole_access_handler' => [ 'access_handler' => [
'class' => StreamHandler::class, 'class' => StreamHandler::class,
'level' => Logger::INFO, 'level' => Logger::INFO,
'stream' => 'php://stdout', 'stream' => 'php://stdout',
@ -49,9 +49,9 @@ return [
'handlers' => ['shlink_rotating_handler'], 'handlers' => ['shlink_rotating_handler'],
'processors' => ['exception_with_new_line', 'psr3'], 'processors' => ['exception_with_new_line', 'psr3'],
], ],
'Swoole' => [ 'Access' => [
'handlers' => ['swoole_access_handler'], 'handlers' => ['access_handler'],
'processors' => ['psr3'], 'processors' => ['exception_with_new_line', 'psr3'],
], ],
], ],
], ],
@ -59,14 +59,14 @@ return [
'dependencies' => [ 'dependencies' => [
'factories' => [ 'factories' => [
'Logger_Shlink' => Common\Factory\LoggerFactory::class, 'Logger_Shlink' => Common\Factory\LoggerFactory::class,
'Logger_Swoole' => Common\Factory\LoggerFactory::class, 'Logger_Access' => Common\Factory\LoggerFactory::class,
], ],
], ],
'zend-expressive-swoole' => [ 'zend-expressive-swoole' => [
'swoole-http-server' => [ 'swoole-http-server' => [
'logger' => [ 'logger' => [
'logger-name' => 'Logger_Swoole', 'logger-name' => 'Logger_Access',
], ],
], ],
], ],