src/BaseConnector.php
protected function log(string $message = 'Logging - void', string $type = 'info'):bool
    {
        if(empty($this->logger)) {
            return false;
        }

        switch ($type) {
            case 'emergency':
                $this->logger->emergency($message);
                break;
            case 'alert':
                $this->logger->alert($message);
                break;
            case 'critical':
                $this->logger->critical($message);
                break;
            case 'error':
                $this->logger->error($message);
                break;
            case 'warning':
                $this->logger->warning($message);
                break;
            case 'notice':
                $this->logger->notice($message);
                break;
            default:
            case 'info':
                $this->logger->info($message);
                break;
            case 'debug':
                $this->logger->debug($message);
                break;
        }
        return true;
    }
protected function log(string $message = 'Logging - void', string $type = 'info'):bool
    {
        if(empty($this->logger)) {
            return false;
        }

        switch ($type) {
            case 'emergency':
                $this->logger->emergency($message);
                break;
            case 'alert':
                $this->logger->alert($message);
                break;
            case 'critical':
                $this->logger->critical($message);
                break;
            case 'error':
                $this->logger->error($message);
                break;
            case 'warning':
                $this->logger->warning($message);
                break;
            case 'notice':
                $this->logger->notice($message);
                break;
            default:
            case 'info':
                $this->logger->info($message);
                break;
            case 'debug':
                $this->logger->debug($message);
                break;
        }
        return true;
    }
Logging the message to a log when logger is available else write it to /dev/null
@param string $message
@param string $type

@return bool