logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eugeny N Dzhurinsky <b...@redwerk.com>
Subject Re: problems with logging
Date Wed, 05 Jul 2006 15:56:03 GMT
On Tue, Jul 04, 2006 at 09:19:53AM -0400, Javier Gonzalez wrote:
> >> A possible fix is configuring the root Logger for DEBUG priority -
> >> however, this will leave all loggers logging at DEBUG level.
> >
> >I tried that too - still have seen no logs except logs for my application. 
> >I
> >think it's because my application uses log4j explicitly, and libraries are
> >using commons logging from Jakarta. May be there is something to do about
> >using Log4J with commons logging somehow?
> 
> That's weird - I have had the opposite problem, httpclient.wire
> logging so much info it makes my logs unreadable unless I explicitly
> set httpclient.wire at WARN level.
> 
> Try adding this to your config:

Finally i resolved this issue with adding commons-logging.jar to classpath and
providing commons-logging.properties with

org.apache.commons.logging.Log = org.apache.commons.logging.impl.Log4JLogger

And that worked!

-- 
Eugene N Dzhurinsky

---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-user-help@logging.apache.org


Mime
View raw message