AdsUser::LogDefaults PHP Method

LogDefaults() public method

Configures the library to log basic information about all requests and the full SOAP XML request and response only when an error occurs.
public LogDefaults ( )
    public function LogDefaults()
    {
        Logger::SetLogLevel(Logger::$SOAP_XML_LOG, Logger::$ERROR);
        Logger::SetLogLevel(Logger::$REQUEST_INFO_LOG, Logger::$INFO);
    }

Usage Example

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