Exemplo n.º 1
0
 /**
  * Initializes the logging mechanism used by services created by this user.
  * HTTP headers and SOAP XML are logged to the soap_xml.log file and all request information
  * is logged to the request_info.log file under the logs directory.
  */
 protected function InitLogs()
 {
     Logger::LogToFile(Logger::$SOAP_XML_LOG, $this->logsDirectory . "/soap_xml.log");
     Logger::LogToFile(Logger::$REQUEST_INFO_LOG, $this->logsDirectory . "/request_info.log");
     Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$FATAL);
     Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$FATAL);
 }
Exemplo n.º 2
0
 /**
  * Overrides AdsUser::InitLogs(), adding an additional log for report download requests.
  */
 protected function InitLogs()
 {
     parent::InitLogs();
     Logger::LogToFile(ReportUtils::$LOG_NAME, $this->GetLogsDirectory() . "/report_download.log");
     Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$FATAL);
 }