public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->factory->setLogger($logger);
        return $this;
    }
public function setLogger(LoggerInterface $logger)
    {
        $this->logger = $logger;
        $this->factory->setLogger($logger);
        return $this;
    }
public function setLogger ( LoggerInterface $ logger ) { $ this -> logger = $ logger ; $ this -> factory -> setLogger ( $ logger ) ; return $ this ; }
Set the logger object to use.

@var LoggerInterface $logger The logging object

@return $this
Set the logger object to use .