public function addLogger(LoggerInterface $logger)
    {
        if ($this->isLoggerLoaded() && !($this->logger instanceof NullLogger)) {
            $logger = new LoggerAggregator([$logger, $this->logger]);
        }
        $this->logger = $logger;
        return $logger;
    }
public function addLogger(LoggerInterface $logger)
    {
        if ($this->isLoggerLoaded() && !($this->logger instanceof NullLogger)) {
            $logger = new LoggerAggregator([$logger, $this->logger]);
        }
        $this->logger = $logger;
        return $logger;
    }
public function addLogger ( LoggerInterface $ logger ) { if ( $ this -> isLoggerLoaded ( ) && ! ( $ this -> logger instanceof NullLogger ) ) { $ logger = new LoggerAggregator ( [ $ logger , $ this -> logger ] ) ; } $ this -> logger = $ logger ; return $ logger ; }
Add a Psr3 logger to LoggerService instance
Previous and new logger are encapsulated into a LoggerAggregator

@param LoggerInterface $logger
@return LoggerAggregator|LoggerInterface
Add a Psr3 logger to LoggerService instance Previous and new logger are encapsulated into a LoggerAggregator