public class AdsServiceLoggers extends Object
AdsServiceLogger
allows logging of outgoing and
incoming SOAP XML messages as API calls are executed.Modifier and Type | Field and Description |
---|---|
static org.slf4j.Logger |
ADS_API_LIB_LOG
The client library logger.
|
Modifier | Constructor and Description |
---|---|
protected |
AdsServiceLoggers(PrettyPrinterInterface prettyPrinter,
org.slf4j.Logger soapXmlLogger,
org.slf4j.Logger requestInfoLogger)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
public static final org.slf4j.Logger ADS_API_LIB_LOG
@Inject protected AdsServiceLoggers(PrettyPrinterInterface prettyPrinter, org.slf4j.Logger soapXmlLogger, org.slf4j.Logger requestInfoLogger)
prettyPrinter
- an object capable of pretty printing XML messagessoapXmlLogger
- the SOAP XML loggerrequestInfoLogger
- the request info loggerpublic org.slf4j.Logger getLibLogger()
public void logSoapXml(SoapCallReturn soapCallReturn)
soapCallReturn
- information on the SOAP call to be loggedpublic void logRequest(SoapCallReturn soapCallReturn)
soapCallReturn
- information on the SOAP call to be loggedCopyright © 2017. All Rights Reserved.