turbomanage / basic-http-client

Automatically exported from code.google.com/p/basic-http-client
73 stars 25 forks source link

add a method to disable logging of response #17

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Is it possible to have a method in the HttpResponse class that disable logging 
of its content? Because now in my log there are too much log's data when I get 
informations from the net :)

Thanks.

Original issue reported on code.google.com by chicco.colantoni on 30 Jun 2013 at 8:21

GoogleCodeExporter commented 9 years ago
I suppose a custom logging level would be nice so I'll add this as a feature 
request, but for now you can subclass ConsoleRequestLogger with your own 
implementation and supply an instance to BasicRequestHandler similar to what's 
shown in https://code.google.com/p/basic-http-client/#Understanding_the_Code.

Original comment by turboman...@gmail.com on 26 Jan 2014 at 3:37