com.google.api.ads.common.lib.utils.logging
Class AdsServiceLoggers

java.lang.Object
  extended by com.google.api.ads.common.lib.utils.logging.AdsServiceLoggers

public class AdsServiceLoggers
extends Object

The class AdsServiceLogger allows logging of outgoing and incoming SOAP XML messages as API calls are executed.

Author:
Adam Rogal, Joseph DiLallo

Field Summary
static org.slf4j.Logger ADS_API_LIB_LOG
          The client library logger.
 
Constructor Summary
protected AdsServiceLoggers(PrettyPrinterInterface prettyPrinter, org.slf4j.Logger soapXmlLogger, org.slf4j.Logger requestInfoLogger)
          Constructor.
 
Method Summary
 org.slf4j.Logger getLibLogger()
          Gets the client library info logger.
 void logRequest(SoapCallReturn soapCallReturn)
          Logs basic information on a SOAP request.
 void logSoapXml(SoapCallReturn soapCallReturn)
          Logs the XML messages from a given SOAP interaction.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ADS_API_LIB_LOG

public static final org.slf4j.Logger ADS_API_LIB_LOG
The client library logger.

Constructor Detail

AdsServiceLoggers

@Inject
protected AdsServiceLoggers(PrettyPrinterInterface prettyPrinter,
                                   org.slf4j.Logger soapXmlLogger,
                                   org.slf4j.Logger requestInfoLogger)
Constructor.

Parameters:
prettyPrinter - an object capable of pretty printing XML messages
soapXmlLogger - the SOAP XML logger
requestInfoLogger - the request info logger
Method Detail

getLibLogger

public org.slf4j.Logger getLibLogger()
Gets the client library info logger.

Returns:
the request info logger

logSoapXml

public void logSoapXml(SoapCallReturn soapCallReturn)
Logs the XML messages from a given SOAP interaction.

Parameters:
soapCallReturn - information on the SOAP call to be logged

logRequest

public void logRequest(SoapCallReturn soapCallReturn)
Logs basic information on a SOAP request.

Parameters:
soapCallReturn - information on the SOAP call to be logged


Copyright © 2012. All Rights Reserved.