library/Garp/Service/Gofilex.php
protected function _logTraffic() {
        if ('testing' !== APPLICATION_ENV) {
            $lastRequest = $this->_client->getLastRequest();
            $lastResponse = $this->_client->getLastResponse();
            $filename = date('Y-m-d').'-gofilex.log';
            $logMessage  = "\n";
            $logMessage .= '[REQUEST]'."\n";
            $logMessage .= $lastRequest."\n\n";
            $logMessage .= '[RESPONSE]'."\n";
            $logMessage .= $lastResponse."\n\n";

            dump($filename, $logMessage);
        }
    }
protected function _logTraffic() {
        if ('testing' !== APPLICATION_ENV) {
            $lastRequest = $this->_client->getLastRequest();
            $lastResponse = $this->_client->getLastResponse();
            $filename = date('Y-m-d').'-gofilex.log';
            $logMessage  = "\n";
            $logMessage .= '[REQUEST]'."\n";
            $logMessage .= $lastRequest."\n\n";
            $logMessage .= '[RESPONSE]'."\n";
            $logMessage .= $lastResponse."\n\n";

            dump($filename, $logMessage);
        }
    }
protected function _logTraffic ( ) { if ( 'testing' !== APPLICATION_ENV ) { $ lastRequest = $ this -> _client -> getLastRequest ( ) ; $ lastResponse = $ this -> _client -> getLastResponse ( ) ; $ filename = date ( 'Y-m-d' ) . '-gofilex.log' ; $ logMessage = "\n" ; $ logMessage .= '[REQUEST]' . "\n" ; $ logMessage .= $ lastRequest . "\n\n" ; $ logMessage .= '[RESPONSE]' . "\n" ; $ logMessage .= $ lastResponse . "\n\n" ; dump ( $ filename , $ logMessage ) ; } }
Keep track of all requests and their responses in a log file
@return Void
Keep track of all requests and their responses in a log file