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 with stages
in 4 minutes and 20 seconds
## [1.7.1] - 2022-04-15
### Fixed
- Fixed the getLogger method from SimpleLoggerFactory
## [1.7.0] - 2022-04-08
### Added
- Added `SimpleLoggerFactory` for basic logger use cases.
......
<?php
declare(strict_types=1);
declare( strict_types=1 );
namespace WPDesk\Logger;
......@@ -25,7 +25,7 @@ final class SimpleLoggerFactory implements LoggerFactory {
$this->options = $options ?? new Settings();
}
public function getLogger( string $channel, Settings $options = null ): Logger {
public function getLogger( $name = null ): Logger {
if ( $this->logger ) {
return $this->logger;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment