Discuss Dropbox Developer & API
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 responses that the Dropbox SDK for Java sends and receives.
Thank you for your response.
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);
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);
The way we work is changing. Share and discover new ways to work smarter with Dropbox in our community.
Sound good? Let's get started.Hi there!
If you need more help you can view your support options (expected response time for a ticket is 24 hours), or contact us on Twitter or Facebook.
For more info on available support options, see this article.
If you found the answer to your question, please 'like' the post to say thanks to the user!