hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Oliver Zemann <oliver.zem...@googlemail.com>
Subject disabling logging in httpclient 4.x
Date Thu, 10 Nov 2011 18:16:24 GMT
hi,

is there an easy way to disable logging in an osgi environment?
i get a lot of:
[java] org.apache.httpcomponents.httpclient[org.apache.http.wire] : <<
"        <form action="" id="httpsForm" class="hide"
target="httpsIframe" enctype="multipart/form-data"
method="post"></form>[\n]"
     [java] org.apache.httpcomponents.httpclient[org.apache.http.wire] :
<< "    </div>[\n]"
     [java] org.apache.httpcomponents.httpclient[org.apache.http.wire] :
<< "[\n]"
     [java] org.apache.httpcomponents.httpclient[org.apache.http.wire] :
<< "        [\n]"
     [java] org.apache.httpcomponents.httpclient[org.apache.http.wire] :
<< "    [\n]"
     [java] org.apache.httpcomponents.httpclient[org.apache.http.wire] :
<< "    [\n]"
in my stdout and would like to disable them.
i use the pax osgi bundle for logging, which enables many logging
facilities.
is there a simple way to disable logging in httpclient? maybe in code?
i tried:
java.util.logging.Logger.getLogger("org.apache.httpcomponents.httpclient").setLevel(java.util.logging.Level.OFF);
and
java.util.logging.Logger.getLogger("org.apache.http.wire").setLevel(java.util.logging.Level.OFF);
but that doesnt fix it, same behavior

thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org


Mime
View raw message