logging-log4j-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jacob Kjome <h...@visi.com>
Subject Re: log4j ignoring log4j.properties and only showing INFO messages
Date Thu, 27 Nov 2008 18:39:20 GMT
Try using -Dlog4j.debug=true to see how Log4j is being configured.  Maybe someone
is performing manual configuration shortly after auto-configuration takes place?


On 11/26/2008 3:54 PM, Farrukh Najmi wrote:
> I have been using log4j 1.2.14 and commons-logging 1.1 in my project
> successfully for a long time.
> All of a sudden I am finding that my log4j.properties file can no longer
> control logging behavior
> for log4j. The only messages that are logged are INFO messages.
> Since my project is a maven project with many direct and indirect
> dependencies its possible that one of those dependencies changed in some way
> to change my apps logging behavior.
> I have tried specifying my log4j file explicitly using system property:
> -Dlog4j.configuration=file:///somedir/log4j.properties
> No joy with that. Expected trace messages till did not appear.
> Then I wondered perhaps the problem is in commons-logging so I tried to turn
> diagnostic on in common-logging using system property:
>  -Dorg.apache.commons.logging.diagnostics.dest=somefile.txt
> Still no joy. No file was created.
> What could be wrong and how can I debug this further?
> Thanks for your help.

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

View raw message