cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Announcements
Whether you are transferring a single drive, a team or an entire organization, Movebot's cloud migration tool has been built to make your Dropbox migration simple - learn all about it here.

Discuss Dropbox Developer & API

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Enable logging dropbox sdk java

Enable logging dropbox sdk java

Michal5
Explorer | Level 4

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.

1 Accepted Solution

Accepted Solutions

Re: Enable logging dropbox sdk java

Greg-DB
Dropboxer

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);

 

 

View solution in original post

1 Reply 1

Re: Enable logging dropbox sdk java

Greg-DB
Dropboxer

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);

 

 

Who's talking

Top contributors to this post

  • User avatar
    Greg-DB Dropboxer
What do Dropbox user levels mean?
Need more support?