android - How to disable Http class' LogCat output -


i'm using http class make large number of / post requests , lot of spam in logcat:

04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.max-redirects': null 04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.route.forced-route': null 04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.route.local-address': null 04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.route.default-proxy': null 04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.conn-manager.timeout': null 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.threadsafeclientconnmanager(6644): threadsafeclientconnmanager.getconnection: httproute[{}->http://<address>], timeout = 0 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): total connections kept alive: 0 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): total issued connections: 0 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): total allocated connection: 0 out of 20 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): no free connections [httproute[{}-><address>]][null] 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): available capacity: 2 out of 2 [httproute[{}-><address>]][null] 04-05 10:26:21.662: i/org.apache.http.impl.conn.tsccm.connpoolbyroute(6644): creating new connection [httproute[{}-><address>]] 04-05 10:26:21.662: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.stalecheck': null 04-05 10:26:21.672: i/org.apache.http.impl.client.defaultrequestdirector(6644): stale connection check 04-05 10:26:21.672: i/org.apache.http.impl.client.defaultrequestdirector(6644): stale connection detected 04-05 10:26:21.672: i/org.apache.http.impl.conn.defaultclientconnection(6644): connection closed 04-05 10:26:21.672: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.timeout': 10000 04-05 10:26:21.882: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.tcp.nodelay': null 04-05 10:26:21.882: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.socket.timeout': 15000 04-05 10:26:21.892: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.socket.linger': null 04-05 10:26:21.892: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.socket.buffer-size': null 04-05 10:26:21.892: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.element-charset': null 04-05 10:26:21.902: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.max-line-length': null 04-05 10:26:21.902: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.element-charset': null 04-05 10:26:21.902: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.max-header-count': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.max-line-length': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.connection.max-status-line-garbage': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.virtual-host': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.default-headers': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.version': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.useragent': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.version': null 04-05 10:26:21.912: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.expect-continue': false 04-05 10:26:21.922: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.cookie-policy': null 04-05 10:26:21.922: i/org.apache.http.client.protocol.requestaddcookies(6644): cookiespec selected: best-match 04-05 10:26:21.922: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.cookie-datepatterns': null 04-05 10:26:21.922: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.single-cookie-header': null 04-05 10:26:21.922: i/org.apache.http.impl.client.defaultrequestdirector(6644): attempt 1 execute request 04-05 10:26:21.922: i/org.apache.http.impl.client.clientparamsstack(6644): 'http.protocol.version': null 04-05 10:26:21.922: i/org.apache.http.wire(6644): >> "post /aap.do http/1.1[eol]" 04-05 10:26:21.922: i/org.apache.http.wire(6644): >> "content-length: 567[eol]" 04-05 10:26:21.932: i/org.apache.http.wire(6644): >> "content-type: application/octet-stream[eol]" 04-05 10:26:21.932: i/org.apache.http.wire(6644): >> "host: <address>[eol]" 04-05 10:26:21.932: i/org.apache.http.wire(6644): >> "connection: keep-alive[eol]" 04-05 10:26:21.932: i/org.apache.http.wire(6644): >> "[eol]" (...) 

i looked on web , cannot believe nobody posted way disable this! anyone?

edit

to make clear - know can filter / remove proguard in release etc. - thing want rid (not filter) of these logs during development.

logger.getlogger("org.apache.http.wire").setlevel(level.off); logger.getlogger("").setlevel(level.off);

for more details, see how enable logging apache commons httpclient on android


Comments

Popular posts from this blog

monitor web browser programmatically in Android? -

Shrink a YouTube video to responsive width -

wpf - PdfWriter.GetInstance throws System.NullReferenceException -