We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Michal5
6 years agoExplorer | Level 4
Enable logging dropbox sdk java
Hi.
I would like to know whether it is possible enable logging for all request and response data. I am using dropbox sdk java. In some cases, it can be useful to see the exact requests and response...
- 6 years ago
The Dropbox Java SDK itself doesn't have methods for enabling logging, but if you're using the StandardHttpRequestor (the default) you can enable logging output like this:
Logger.getLogger("").setLevel(Level.ALL); final java.util.logging.ConsoleHandler consoleHandler = new java.util.logging.ConsoleHandler(); consoleHandler.setLevel(Level.ALL); Logger.getLogger("").addHandler(consoleHandler);
Greg-DB
Dropbox Community Moderator
6 years agoThe Dropbox Java SDK itself doesn't have methods for enabling logging, but if you're using the StandardHttpRequestor (the default) you can enable logging output like this:
Logger.getLogger("").setLevel(Level.ALL);
final java.util.logging.ConsoleHandler consoleHandler = new java.util.logging.ConsoleHandler();
consoleHandler.setLevel(Level.ALL);
Logger.getLogger("").addHandler(consoleHandler);
About Discuss Dropbox Developer & API
Make connections with other developers
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!