protected function buildLogDataFromResponse(ResponseAdapter $solrResponse, \Exception $e = null, $url = '', $contentSend = '')
    {
        $logData = ['query url' => $url, 'response' => (array)$solrResponse];

        if ($contentSend !== '') {
            $logData['content'] = $contentSend;
        }

        if (!empty($e)) {
            $logData['exception'] = $e->__toString();
            return $logData;
        } else {
            // trigger data parsing
            $solrResponse->response;
            $logData['response data'] = print_r($solrResponse, true);
            return $logData;
        }
    }
protected function buildLogDataFromResponse(ResponseAdapter $solrResponse, \Exception $e = null, $url = '', $contentSend = '')
    {
        $logData = ['query url' => $url, 'response' => (array)$solrResponse];

        if ($contentSend !== '') {
            $logData['content'] = $contentSend;
        }

        if (!empty($e)) {
            $logData['exception'] = $e->__toString();
            return $logData;
        } else {
            // trigger data parsing
            $solrResponse->response;
            $logData['response data'] = print_r($solrResponse, true);
            return $logData;
        }
    }
protected function buildLogDataFromResponse ( ResponseAdapter $ solrResponse , \ Exception $ e = null , $ url = '' , $ contentSend = '' ) { $ logData = [ 'query url' => $ url , 'response' => ( array ) $ solrResponse ] ; if ( $ contentSend !== '' ) { $ logData [ 'content' ] = $ contentSend ; } if ( ! empty ( $ e ) ) { $ logData [ 'exception' ] = $ e -> __toString ( ) ; return $ logData ; } else { // trigger data parsing $ solrResponse -> response ; $ logData [ 'response data' ] = print_r ( $ solrResponse , true ) ; return $ logData ; } }
Parses the solr information to build data for the logger.

@param ResponseAdapter $solrResponse
@param \Exception $e
@param string $url
@param string $contentSend
@return array
Parses the solr information to build data for the logger .