commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Kruggel <>
Subject HttpClient is logging on INFO-level - how to change to ERROR?
Date Fri, 05 Jan 2007 17:03:48 GMT
Hi list,

I use HttpClient 2.0 that - according to the documentation - depends on
commons-logging-1.1 which I installed and added to CLASSPATH. Actually I
fail to change the log-level and got stuck with the search, where I can
change from INFO to ERROR.

My first glance in the logging-documentation made me try two different
lines. The first does have no effect on the HttpClient (it still is
logging on INFO-level) and the second line seems to confuse the

System.setProperty("org.apache.commons.logging.simplelog.defaultlog", "error");

// no effect, still getting messages such as
// 05.01.2007 17:40:45 org.apache.commons.httpclient.auth.AuthChallengeProcessor selectAuthScheme
// INFO: basic authentication scheme selected

System.setProperty("org.apache.commons.logging.Log", "error");

// crashes a few lines later
// java.lang.ExceptionInInitializerError
//         at HttpPasswordTester.main(
// Caused by: org.apache.commons.logging.LogConfigurationException: User-specified log class
'error' cannot be found or is not useable.
//         at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(
//         at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(
//         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
//         at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(
//         at org.apache.commons.logging.LogFactory.getLog(
//         at org.apache.commons.httpclient.HttpClient.<clinit>(
//         ... 1 more

Can anybody tell me where or even how I can change the log-level for the

Best regards,


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message