Created
July 10, 2012 20:57
-
-
Save Richie97/3086186 to your computer and use it in GitHub Desktop.
Enable WireShark type stuff for Logcat
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
**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