Skip to content

Instantly share code, notes, and snippets.

@Richie97
Created July 10, 2012 20:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Richie97/3086186 to your computer and use it in GitHub Desktop.
Save Richie97/3086186 to your computer and use it in GitHub Desktop.
Enable WireShark type stuff for Logcat
**Paste this shiz where you need to troubleshoot*****************************************************
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");
***And Run these in terminal(or LOLCommandPrompt) with your device connected*************************
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment