Skip to content

Commit

Permalink
Fix logger default name with uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
odan committed Jul 29, 2022
1 parent 48922d7 commit 74d9ade
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Factory/LoggerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public function createLogger(string $name = null): LoggerInterface
return $this->testLogger;
}

$logger = new Logger($name ?: Uuid::v4());
$logger = new Logger($name ?: Uuid::v4()->toRfc4122());

foreach ($this->handler as $handler) {
$logger->pushHandler($handler);
Expand Down

0 comments on commit 74d9ade

Please sign in to comment.