public function toLogString()
    {
        $logParts = array();
        if ($this->getStatus() !== null) {
            $logParts[] = 'status=' . $this->getStatus();
        }
        if ($this->getRawRequest() !== null) {
            $logParts[] = 'request=' . $this->getRawRequest();
        }
        if ($this->getRawResponse() !== null) {
            $logParts[] = 'response=' . $this->getRawResponse();
        }
        if ($this->getException() !== null) {
            $logParts[] = $this->getException()->__toString();
        }
        return implode('; ', $logParts);
    }