diff --git a/config/autoload/logger.global.php b/config/autoload/logger.global.php index dd4d1d22..7c56b813 100644 --- a/config/autoload/logger.global.php +++ b/config/autoload/logger.global.php @@ -7,6 +7,7 @@ use Monolog\Handler\RotatingFileHandler; use Monolog\Handler\StreamHandler; use Monolog\Logger; use Monolog\Processor; +use Psr\Log\LoggerInterface; use const PHP_EOL; @@ -61,6 +62,11 @@ return [ 'Logger_Shlink' => Common\Logger\LoggerFactory::class, 'Logger_Access' => Common\Logger\LoggerFactory::class, ], + 'aliases' => [ + 'logger' => 'Logger_Shlink', + Logger::class => 'Logger_Shlink', + LoggerInterface::class => 'Logger_Shlink', + ], ], 'zend-expressive-swoole' => [