diff --git a/CHANGELOG.md b/CHANGELOG.md index 22dfe78..2b41809 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,7 +3,7 @@ ## 1.0.4 under development -- no changes in this release. +- Bug #35: Remove `Psr\Log\LoggerInterface` definition from configuration for using multiple targets to application (devanych) ## 1.0.3 April 13, 2021 diff --git a/config/common.php b/config/common.php index 2b7e9bb..d4da429 100644 --- a/config/common.php +++ b/config/common.php @@ -2,9 +2,7 @@ declare(strict_types=1); -use Psr\Log\LoggerInterface; use Yiisoft\Aliases\Aliases; -use Yiisoft\Log\Logger; use Yiisoft\Log\Target\File\FileRotator; use Yiisoft\Log\Target\File\FileRotatorInterface; use Yiisoft\Log\Target\File\FileTarget; @@ -12,8 +10,6 @@ /* @var $params array */ return [ - LoggerInterface::class => static fn (FileTarget $fileTarget) => new Logger([$fileTarget]), - FileRotatorInterface::class => [ 'class' => FileRotator::class, '__construct()' => [