Пример #1
0
 /**
  * Log messages to the relevant message sources.
  *
  * @param string $message is the message to log
  * @param string $level is the message level to log
  */
 protected static function Log($message, $level = null)
 {
     Logger::log(Logger::$SOAP_XML_LOG, $message, $level);
     Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level);
 }
Пример #2
0
 /**
  * Logs the request info to the Logger::$REQUEST_INFO_LOG log the request has
  * transformed by PrepareRequest() and both the request has been sanitized by
  * RemoveSensitiveInfo().
  * @param string $level the log level to use
  * @see PrepareRequest()
  * @see RemoveSensitiveInfo()
  */
 private function LogRequestInfo($level)
 {
     $message = $this->GenerateRequestInfoMessage($this->lastRequest, $this->lastResponse, $this->lastSoapFault);
     Logger::log(Logger::$REQUEST_INFO_LOG, $message, $level);
 }