protected function getLogger()
    {
        if (!isset($this->logger)) {
            // When no logger is injected, create a new one
            // that doesn't do anything
            $this->logger = new Logger('api-client');
            $this->logger->setHandlers([
                new NullHandler(),
            ]);
        }

        return $this->logger;
    }
protected function getLogger()
    {
        if (!isset($this->logger)) {
            // When no logger is injected, create a new one
            // that doesn't do anything
            $this->logger = new Logger('api-client');
            $this->logger->setHandlers([
                new NullHandler(),
            ]);
        }

        return $this->logger;
    }
protected function getLogger ( ) { if ( ! isset ( $ this -> logger ) ) { // When no logger is injected, create a new one // that doesn't do anything $ this -> logger = new Logger ( 'api-client' ) ; $ this -> logger -> setHandlers ( [ new NullHandler ( ) , ] ) ; } return $ this -> logger ; }
Get the logger instance associated with this instance.

@return LoggerInterface
Get the logger instance associated with this instance .