What are you trying to do with the loggers? They are bound via guice. You could gain access to the logger by calling LoggerFactory.getLogger<https://code.google.com/p/google-api-ads-java/source/browse/modules/ads_lib/src/main/java/com/google/api/ads/common/lib/utils/logging/LoggingModule.java#61>with the name of the logger if you really wanted to log to the exact same logger. In general, you'd want to define your own logger so you could filter or otherwise handle the two logging sources differently. The intent is that you use a log4j.properties (such as this one<https://code.google.com/p/google-api-ads-java/source/browse/examples/adwords_axis/src/main/resources/log4j.properties>) to manage where the log output goes.
- Kevin Winter AdWords API Team On Wednesday, January 23, 2013 8:32:04 AM UTC-5, Stamatina Thomaidou wrote: > > Actually we *were* using before the Loggers that are mentioned in the FAQ: > com.google.api.ads.adwords.lib.client.AdWordsServiceClient.soapXmlLogger and > > com.google.api.ads.adwords.lib.client.AdWordsServiceClient.requestInfoLogger. > > The problem is that now we are trying to import them and after the > com.google.api.ads.adwords.lib.client.AdWordsServiceClient we cannot find > the corresponding classes of soapXmlLogger and requestInfoLogger. > > The only logger that we can use is the > com.google.api.ads.common.lib.utils.logging.AdsServiceLoggers > > On Saturday, January 19, 2013 12:30:46 AM UTC+2, David Torres (AdWords API > Team) wrote: >> >> Hi, >> >> Please give it a look at this wiki page >> https://code.google.com/p/google-api-ads-java/wiki/FAQ >> >> Let me know if you have further questions. >> >> Best, >> >> - David Torres - AdWords API Team >> >> On Thursday, January 17, 2013 11:44:04 AM UTC-5, Stamatina Thomaidou >> wrote: >>> >>> Hello everyone, >>> >>> I would like to ask about the capabilities of Logging with v201209 in >>> Java Client Library - Google Ads APIs Client Library for Java >>> (AdWords)<https://code.google.com/p/google-api-ads-java/>. >>> >>> >>> Up until now, we were using the simple AdWords Java Client Library and >>> the com.google.api.adwords.lib. >>> AdWordsServiceLogger for logging the messages like the examples: >>> >>> // Log SOAP XML request and response. >>> AdWordsServiceLogger.log(); >>> >>> Now, we are switching to the Google Ads APIs Client Library for Java. We >>> cannot find an example for Logging capabilities. We have found the >>> com.google.api.ads.common.lib.utils.logging.AdsServiceLoggers , but we >>> cannot understand how should we use it in order to log soap messages from >>> the API errors, etc. >>> >> -- -- =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ Also find us on our blog and discussion group: http://adwordsapi.blogspot.com http://groups.google.com/group/adwords-api =~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~=~ You received this message because you are subscribed to the Google Groups "AdWords API Forum" group. To post to this group, send email to adwords-api@googlegroups.com To unsubscribe from this group, send email to adwords-api+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/adwords-api?hl=en