On 02/06/2008, Steven Adams <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I've been trying to get log4j working with httpclient 4.x.
>
> My properties file looks like the following..
>
> ----SNIP----
> logj4.logger.org.apache.commons.httpclient=DEBUG, httc
> logj4.logger.org.apache.http.wire=DEBUG, httc
> logj4.logger.org.apache.http.headers=DEBUG, httc
>
> log4j.appender.httc =org.apache.log4j.FileAppender
> log4j.appender.httc.File=logs/httc.log
> log4j.appender.httc.layout=org.apache.log4j.PatternLayout
> log4j.appender.httc.layout.ConversionPattern=%p %d{dd MMM yyyy HH:mm:ss}
> [%t] %c %x - %m%n
> ----SNIP----
>
> Any ideas?
>
Is it using log4j logging? Or has it picked some other logger?
If so, the following advice just posted to Commons User list might help:
You could try putting a file named "commons-logging.properties" in your
app's classpath with the following contents:
org.apache.commons.logging.Log=org.apache.commons.logging.impl.Log4JLogger
This will force commons logging to use log4j.
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]