title: Clean logging of response from apache HttpClient (without 15:44:59.689 [http-nio-8080-exec-4] DEBUG org.apache.http.wire - http-outgoing-0 <<)
body: <p>I managed to turn on full debug logging on HttpClient. (using logback) I does log everything indeed but adds a lot of garbage headers on every line. I would like to have logging without any extra formatting, semicolons, quotes, encodings like this:</p>
  
  <pre><code>15:44:59.689 [http-nio-8080-exec-4] DEBUG org.apache.http.wire - http-outgoing-0 &lt;&lt; "  &lt;readOnly&gt;false&lt;/readOnly&gt;[\n]"
  15:44:59.689 [http-nio-8080-exec-4] DEBUG org.apache.http.wire - http-outgoing-0 &lt;&lt; "  &lt;enabled&gt;false&lt;/enabled&gt;[\n]"
  15:44:59.689 [http-nio-8080-exec-4] DEBUG org.apache.http.wire - http-outgoing-0 &lt;&lt; "  &lt;metadata&gt;[\n]"
  15:44:59.689 [http-nio-8080-exec-4] DEBUG org.apache.http.wire - http-outgoing-0 &lt;&lt; "    &lt;name&gt;P[0xc5][0x99]ipoji[0xc5][0xa1]t[0xc4][0x9b]n[0xc3][0xad] denn[0xc3][0xad] d[0xc3][0xa1]vky p[0xc5][0x99]i pobytu v nemocnici n[0xc3][0xa1]sledkem [0xc3][0xba]razu d[0xc3][0xad]t[0xc4][0x9b]te&lt;/name&gt;[\n]"
  </code></pre>
  
  <p>Simply if there is valid xml logged in, I want to copy paste whole chunk of log file into my favorite xml editor and see that it is exactly same data as what what came on wire. Is there a way how to achieve this ? I'm fine with extending classes from apache.</p>