AdsUser::InitLogs PHP Метод

InitLogs() защищенный Метод

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 InitLogs ( )
    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);
    }

Usage Example

 /**
  * 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);
 }
All Usage Examples Of AdsUser::InitLogs