Not able to print the SOAP logs when using BatchJobService for Adwords Java API

28 views
Skip to first unread message

shweta.so...@gmail.com

unread,
Nov 30, 2018, 6:20:12 AM11/30/18
to AdWords API and Google Ads API Forum
Hi,

I am using BatchJobservice using Java API, I am not able to print the SOAP request and response logs. Here is my log4j.properties file:

log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=INFO, CONSOLE
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger=INFO, CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.report_download=INFO, CONSOLE
log4j.category.com.google.api.ads.adwords.lib.utils.batch_job=INFO, CONSOLE

# Set the default logger for everything else to be no logs. This prevents all of
# the Axis libraries from complaining that no log is specified for them.
log4j.rootLogger=off

log4j.appender.CONSOLE=org.apache.log4j.ConsoleAppender
log4j.appender.CONSOLE.layout=org.apache.log4j.PatternLayout
# Configure the console logger to write to stderr since examples write
# important messages to stdout.
log4j.appender.CONSOLE.Target=System.out
log4j.appender.CONSOLE.Threshold=INFO
log4j.appender.CONSOLE.layout.ConversionPattern=[%d{DATE}-%c{1}:%p:%t] %m%n

Please let me know if I need to do any additional settings in order to print the SOAP logs.

Regards,
Shweta

Dhanya Sundararaju (AdWords API Team)

unread,
Nov 30, 2018, 11:35:13 AM11/30/18
to AdWords API and Google Ads API Forum
Hi Shweta,

You can retry after replacing all INFO with DEBUG and see if you are able to get the logs. Please refer to this section for better clarity and let me know if you have any further questions.

Regards,
Dhanya, AdWords API Team
Reply all
Reply to author
Forward
0 new messages