AdsUser::LogErrors PHP Метод

LogErrors() публичный Метод

Configures the library to only log requests that return an error.
public LogErrors ( )
    public function LogErrors()
    {
        Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR);
        Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$ERROR);
    }

Usage Example

 /**
  * Overrides AdsUser::LogErrors(), setting an additional log level for report
  * download requests.
  */
 public function LogErrors()
 {
     parent::LogErrors();
     Logger::SetLogLevel(ReportUtils::$LOG_NAME, Logger::$ERROR);
 }
All Usage Examples Of AdsUser::LogErrors