Skip to content

Commit

Permalink
Merge a19134f into eaa4c81
Browse files Browse the repository at this point in the history
  • Loading branch information
jeijei4 committed Aug 4, 2023
2 parents eaa4c81 + a19134f commit 60d2e69
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Infrastructure/LoggerFactory.php
Expand Up @@ -6,6 +6,7 @@

use Devanych\Di\FactoryInterface;
use Exception;
use Monolog\Level;
use Monolog\Logger;
use Monolog\Handler\StreamHandler;
use Psr\Container\ContainerInterface;
Expand All @@ -29,7 +30,7 @@ public function create(ContainerInterface $container): LoggerInterface

$logger->pushHandler(new StreamHandler(
$config['log_file'],
$config['debug'] ? Logger::DEBUG : Logger::WARNING
$config['debug'] ? Level::Debug : Level::Warning
));

return $logger;
Expand Down

0 comments on commit 60d2e69

Please sign in to comment.