darren jiang wrote:
----------------------

private static final Log LOG=LogFactory.getLog(HttpClient.class)

-----------------------

that is why I can not disable the logging for HttpClient.wire

No, this is absolutely correct.

I am using following to disable org.apache.commons debugging:

----------------
log4j.category.org.apache.commons=ERROR, debug, metrics
log4j.category.httpclient=ERROR, debug, metrics
-----------------

That is correct.

this makes the log4j works for my program.

so, I 'd like to raise the the bug in HttpClient, the log object should use its package "org.apache.commons.httpclient.HttpClient", rather than "HttpClient"

It's 'HttpClient.class' that means that the fully qualified class name will be used as the logger. So it's correct as it is.


What you are seeing is the wirelog. The wirelog in 2.0 uses the logger 'httpclient.wire'. This not well documented in the logging guide - good point. We should sort it out.
Maybe we should also change the wirelog logger to something like 'org.apache.commons.httpclient.wire'.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to