Disable info SOAP logs

752 views
Skip to first unread message

Vadim Detkov

unread,
Dec 21, 2017, 5:29:12 PM12/21/17
to AdWords API Forum
Hi,

We are using adWordsServices AdwordsUserListServiceInterface for audiences download in JAVA.
There is a lot of SOAP logs printed from com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger in INFO level ,
that cause a storage issues.
Please update how we can move the logs to ERROR level at least to reduce logs time writing and reduce logs size.

Vincent Racaza (AdWords API Team)

unread,
Dec 22, 2017, 12:26:58 AM12/22/17
to AdWords API Forum
Hi Vadim,

You can easily change the logs for com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger in log4j.properties by setting its value from INFO to ERROR (see the code snippet below) or if you want to disable it, you can just comment out the whole line.
log4j.category.com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger=ERROR, CONSOLE
Hope this helps.

Thanks,
Vincent
AdWords API Team

Vadim Detkov

unread,
Dec 24, 2017, 9:40:10 AM12/24/17
to AdWords API Forum
Hi Vincent,

Thank you for your response.

log4j.properties is file inside that google client kit , that can't be edited by application that using it.
Is there another solution that you aware of to override this property by application that using your jar ?

Bharani Cherukuri (AdWords API Team)

unread,
Dec 27, 2017, 12:41:56 PM12/27/17
to AdWords API Forum
Hi Vadim, 

Vincent is out of office. I will be assisting you on his behalf. I don't think it is possible to override the logging properties through the client libraries. This said, you may refer to this guide for different logging options available in the Java client library. Let me know if that works for you. 

Regards,
Bharani, AdWords API Team

Bharani Cherukuri (AdWords API Team)

unread,
Jan 16, 2018, 3:49:26 PM1/16/18
to AdWords API Forum
Hello Vadim, 

As a correction to my previous response, you could include the SLF4J dependencies while working with the logging framework of your choiceYou can then configure the relevant loggers in the config file. Please check here for more details.

Let me know if you have any other questions. 
Reply all
Reply to author
Forward
0 new messages