What are the class names for logging?

40 views
Skip to first unread message

James Ribe

unread,
Jun 27, 2014, 3:42:45 PM6/27/14
to google-http...@googlegroups.com
I'm working on a client for an Oauth2.0 authenticated REST service deployed on GAE and need to debug the redirects involved (between Oauth2.0 and Blobstore, there's quite a few!). The only documentation I've found for how to use the logging is over at the gdata docs, but using the example code and classnames provided there doesn't produce any log output. I've tried logging a number of classes, but none have produced any output. What class names should I be using to set up logs? For reference, I'm using NetHttpTransport with a GoogleCredential request initializer. I've tried configuring logs for NetHttpTransport, HttpTransport, HttpRequest, HttpResponse, and GoogleCredential, but none of them produce output.

Thanks,
James

Alexey Frishman

unread,
Jun 27, 2014, 4:41:08 PM6/27/14
to google-http...@googlegroups.com
James, for me logging is working ok. The class with logger is HttpTransport. It contains next lines:

...
import java.util.logging.Logger;
...
static final Logger LOGGER = Logger.getLogger(HttpTransport.class.getName());

Also you should note that HttpRequest and HttpResponse use the above logger from HttpTransport.

I suppose you have some mistake in your log configuration. How do you configure them?
Reply all
Reply to author
Forward
0 new messages