How do I get HTTP logging information in the Java client library?
The Java client libraries use the java.util.logging package to enable logging of HTTP requests. This will allow you to enable logging of headers for requests and responses, as well as status codes and request URLs. It does not currently log the full request and response streams. The logger name used for these logs is com.google.gdata.client.http.HttpGDataRequest. In the case that an error code is returned from the servers, an Exception is thrown. The exception classes inherit from com.google.gdata.util.ServiceException and include a public method called getResponseBody(). Look at the Javadoc for more information.