Skip to content

Commit

Permalink
Fix #35: Remove Psr\Log\LoggerInterface definition from configurati…
Browse files Browse the repository at this point in the history
…on for using multiple targets to application
  • Loading branch information
devanych committed Aug 26, 2021
1 parent eed600f commit 06731ae
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Expand Up @@ -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
Expand Down
4 changes: 0 additions & 4 deletions config/common.php
Expand Up @@ -2,18 +2,14 @@

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;

/* @var $params array */

return [
LoggerInterface::class => static fn (FileTarget $fileTarget) => new Logger([$fileTarget]),

FileRotatorInterface::class => [
'class' => FileRotator::class,
'__construct()' => [
Expand Down

0 comments on commit 06731ae

Please sign in to comment.