/** * Logs the SOAP XML to the Logger::$SOAP_XML_LOG log after the request has transformed * by PrepareRequest() and both the request and response have been sanitized * by RemoveSensitiveInfo(). * * @param string $level the log level to use * @see PrepareRequest() * @see RemoveSensitiveInfo() */ private function LogSoapXml($level) { $message = sprintf("%s\n\n%s\n\n%s\n\n%s\n", trim($this->__getLastRequestHeaders()), XmlUtils::PrettyPrint($this->lastRequest), trim($this->__getLastResponseHeaders()), XmlUtils::PrettyPrint($this->lastResponse)); Logger::log(Logger::$SOAP_XML_LOG, $message, $level); }