title: Unable to see context logs for org.apache.http.legacy android
body: <p>My primary issue is that I face SSL handshake timed out error in few of my requests, But it doesn't happen frequently. So, I am trying to get more detailed logs of the entire process.
  I have already referred to <a href="https://stackoverflow.com/a/3303131">this</a> answer in a similar question but I am still unable to see anything in the Logcat. possibly because of the legacy version? I am trying to avoid the need to change or update the library.</p>
  <p>This is what I have tried so far</p>
  <pre><code>java.util.logging.Logger.getLogger(&quot;httpclient.wire.header&quot;).setLevel(java.util.logging.Level.FINEST);
  java.util.logging.Logger.getLogger(&quot;httpclient.wire.content&quot;).setLevel(java.util.logging.Level.FINEST);
  
  System.setProperty(&quot;org.apache.commons.logging.Log&quot;, &quot;org.apache.commons.logging.impl.SimpleLog&quot;);
  System.setProperty(&quot;org.apache.commons.logging.simplelog.showdatetime&quot;, &quot;true&quot;);
  System.setProperty(&quot;org.apache.commons.logging.simplelog.log.httpclient.wire&quot;, &quot;debug&quot;);
  System.setProperty(&quot;org.apache.commons.logging.simplelog.log.org.apache.http&quot;, &quot;debug&quot;);
  System.setProperty(&quot;org.apache.commons.logging.simplelog.log.org.apache.http.header&quot;, &quot;debug&quot;);
  System.setProperty(&quot;org.apache.http.client.HttpClient&quot;, &quot;debug&quot;);
  </code></pre>
  <p>and ran these in adb</p>
  <pre><code>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
  </code></pre>
  <p>I have also read somewhere that logging needs to be set at both java level and android level. How do I do that?</p>
  <p>Any help/advice is appreciated.</p>