hc-httpclient-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Steven Adams" <st...@drifthost.com>
Subject RE: Log4j with Httpclient 4.x
Date Wed, 04 Jun 2008 22:51:06 GMT
But org.apache.http.wire is right?

-----Original Message-----
From: Sam Berlin [mailto:sberlin@gmail.com] 
Sent: Thursday, 5 June 2008 12:03 AM
To: HttpClient User Discussion
Subject: Re: Log4j with Httpclient 4.x

s/patch/path

On Wed, Jun 4, 2008 at 10:02 AM, Sam Berlin <sberlin@gmail.com> wrote:
> Not sure if anyone has pointed out that:
>
>  logj4.logger.org.apache.commons.httpclient=DEBUG, httc
>
> ...is not the correct patch for httpclient 4.0.
>
> Sam
>
> On Wed, Jun 4, 2008 at 8:42 AM, Steven Adams <steve@drifthost.com> wrote:
>> It's picking up the log4j properties files. As I make changes to the
>> properties file (change log files etc) the log names do actually change,
I
>> can also turn the logging down which is also reflected.
>>
>> I know its straying away.. I guess I just wanted to make sure that my
>> properties file looks right for using httpclient with log4j..
>>
>> Thanks
>> Steve
>>
>> -----Original Message-----
>> From: sebb [mailto:sebbaz@gmail.com]
>> Sent: Wednesday, 4 June 2008 9:37 PM
>> To: HttpClient User Discussion
>> Subject: Re: Log4j with Httpclient 4.x
>>
>> On 04/06/2008, Steven Adams <steve@drifthost.com> wrote:
>>> Hi,
>>>
>>>  I know it's using log4j as its outputting everything via the root
>> category.
>>>
>>>  But when I try put to it in its own category (log file) it's just not
>>>  working.
>>>
>>>  Any ideas?
>>
>> Is the log4j properties file having any effect?
>> If not, then presumably log4j is not finding it.
>>
>> This is straying off-topic for this mailing list.
>>
>>>
>>>  -----Original Message-----
>>>  From: sebb [mailto:sebbaz@gmail.com]
>>>  Sent: Monday, 2 June 2008 9:24 PM
>>>  To: HttpClient User Discussion
>>>  Subject: Re: Log4j with Httpclient 4.x
>>>
>>>  On 02/06/2008, Steven Adams <steve@drifthost.com> 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: httpclient-users-unsubscribe@hc.apache.org
>>>  >  For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>>  >
>>>  >
>>>
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>>>  For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>>
>>>
>>>  ---------------------------------------------------------------------
>>>  To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>>>  For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
>> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>>
>>
>

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


---------------------------------------------------------------------
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