Skip to content
Snippets Groups Projects
Commit dabf6516 authored by Piotr Po's avatar Piotr Po
Browse files

Merge branch 'fix/simple-logger' into 'master'

fix: simpleLoggerFactory

See merge request !17
parents 685c19b6 db9b1e93
No related branches found
No related tags found
1 merge request!17fix: simpleLoggerFactory
Pipeline #7557 passed with warnings
## [1.7.1] - 2022-04-15
### Fixed
- Fixed the getLogger method from SimpleLoggerFactory
## [1.7.0] - 2022-04-08 ## [1.7.0] - 2022-04-08
### Added ### Added
- Added `SimpleLoggerFactory` for basic logger use cases. - Added `SimpleLoggerFactory` for basic logger use cases.
......
...@@ -25,7 +25,7 @@ final class SimpleLoggerFactory implements LoggerFactory { ...@@ -25,7 +25,7 @@ final class SimpleLoggerFactory implements LoggerFactory {
$this->options = $options ?? new Settings(); $this->options = $options ?? new Settings();
} }
public function getLogger( string $channel, Settings $options = null ): Logger { public function getLogger( $name = null ): Logger {
if ( $this->logger ) { if ( $this->logger ) {
return $this->logger; return $this->logger;
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment