code: public function setLogger(LoggerInterface $logger)
      {
          if ($this->transport instanceof LoggerAwareInterface) {
              $this->transport->setLogger($logger);
          }
      }
docs: Sets a logger instance on the transport
  
  @param LoggerInterface $logger