Skip to content

Instantly share code, notes, and snippets.

@vilmarbfilho
Last active August 29, 2015 14:24
Show Gist options
  • Save vilmarbfilho/b9a8b665227d4db4dda6 to your computer and use it in GitHub Desktop.
Save vilmarbfilho/b9a8b665227d4db4dda6 to your computer and use it in GitHub Desktop.
java.util.logging.Logger.getLogger("org.apache.http.wire").setLevel(java.util.logging.Level.FINEST);
java.util.logging.Logger.getLogger("org.apache.http.headers").setLevel(java.util.logging.Level.FINEST);
System.setProperty("org.apache.commons.logging.Log", "org.apache.commons.logging.impl.SimpleLog");
System.setProperty("org.apache.commons.logging.simplelog.showdatetime", "true");
System.setProperty("org.apache.commons.logging.simplelog.log.httpclient.wire", "debug");
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http", "debug");
System.setProperty("org.apache.commons.logging.simplelog.log.org.apache.http.headers", "debug");
./adb shell setprop log.tag.org.apache.http VERBOSE
./adb shell setprop log.tag.org.apache.http.wire VERBOSE
./adb shell setprop log.tag.org.apache.http.headers VERBOSE
./adb logcat -s org.apache.http.wire
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment