diff --git a/composer.json b/composer.json index a634df7a..8f15d83e 100644 --- a/composer.json +++ b/composer.json @@ -55,8 +55,8 @@ "filp/whoops": "^2.0", "infection/infection": "^0.12.2", "phpstan/phpstan": "^0.11.2", - "phpunit/phpcov": "^6.0 || ^5.0", - "phpunit/phpunit": "^8.0 || ^7.5", + "phpunit/phpcov": "^6.0", + "phpunit/phpunit": "^8.0", "roave/security-advisories": "dev-master", "shlinkio/php-coding-standard": "~1.1.0", "symfony/dotenv": "^4.2", diff --git a/config/autoload/logger.global.php b/config/autoload/logger.global.php index 435c9ed0..21bd2b8d 100644 --- a/config/autoload/logger.global.php +++ b/config/autoload/logger.global.php @@ -28,7 +28,7 @@ return [ 'max_files' => 30, 'formatter' => 'dashed', ], - 'swoole_access_handler' => [ + 'access_handler' => [ 'class' => StreamHandler::class, 'level' => Logger::INFO, 'stream' => 'php://stdout', @@ -49,9 +49,9 @@ return [ 'handlers' => ['shlink_rotating_handler'], 'processors' => ['exception_with_new_line', 'psr3'], ], - 'Swoole' => [ - 'handlers' => ['swoole_access_handler'], - 'processors' => ['psr3'], + 'Access' => [ + 'handlers' => ['access_handler'], + 'processors' => ['exception_with_new_line', 'psr3'], ], ], ], @@ -59,14 +59,14 @@ return [ 'dependencies' => [ 'factories' => [ 'Logger_Shlink' => Common\Factory\LoggerFactory::class, - 'Logger_Swoole' => Common\Factory\LoggerFactory::class, + 'Logger_Access' => Common\Factory\LoggerFactory::class, ], ], 'zend-expressive-swoole' => [ 'swoole-http-server' => [ 'logger' => [ - 'logger-name' => 'Logger_Swoole', + 'logger-name' => 'Logger_Access', ], ], ],