protected function _logError($response)
    {
        $log = $this->getService('anahita:log', array(
            'file' => 'system_log.php'
        ));

        $message = "\nerror_message=".$response->message()."\n";

        if ($response->cvv_result()) {
            $message .= 'cvv_result='.implode(' ', $response->cvv_result()->toArray())."\n";
        }

        if ($response->avs_result()) {
            $message .= 'avs_result='.implode(' ', $response->avs_result()->toArray())."\n";
        }

        if ($response->params()) {
            $message .= 'params='.implode(' ', $response->params())."\n";
        }

        $log->addEntry(array('comment' => $message, 'level' => 'ERROR'));
    }
protected function _logError($response)
    {
        $log = $this->getService('anahita:log', array(
            'file' => 'system_log.php'
        ));

        $message = "\nerror_message=".$response->message()."\n";

        if ($response->cvv_result()) {
            $message .= 'cvv_result='.implode(' ', $response->cvv_result()->toArray())."\n";
        }

        if ($response->avs_result()) {
            $message .= 'avs_result='.implode(' ', $response->avs_result()->toArray())."\n";
        }

        if ($response->params()) {
            $message .= 'params='.implode(' ', $response->params())."\n";
        }

        $log->addEntry(array('comment' => $message, 'level' => 'ERROR'));
    }
protected function _logError ( $ response ) { $ log = $ this -> getService ( 'anahita:log' , array ( 'file' => 'system_log.php' ) ) ; $ message = "\nerror_message=" . $ response -> message ( ) . "\n" ; if ( $ response -> cvv_result ( ) ) { $ message .= 'cvv_result=' . implode ( ' ' , $ response -> cvv_result ( ) -> toArray ( ) ) . "\n" ; } if ( $ response -> avs_result ( ) ) { $ message .= 'avs_result=' . implode ( ' ' , $ response -> avs_result ( ) -> toArray ( ) ) . "\n" ; } if ( $ response -> params ( ) ) { $ message .= 'params=' . implode ( ' ' , $ response -> params ( ) ) . "\n" ; } $ log -> addEntry ( array ( 'comment' => $ message , 'level' => 'ERROR' ) ) ; }
Logs an error.

@param mixed $response
Logs an error .