Java Mailing List Archive

http://www.java2.5341.com/

Home » Log4J Users List »

log4j ignoring log4j.properties and only showing INFO messages

Farrukh Najmi

2008-11-26

Replies: Find Java Web Hosting

Author LoginPost Reply

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.
--
Sent from the Log4j - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: log4j-user-unsubscribe@(protected)
For additional commands, e-mail: log4j-user-help@(protected)

©2008 java2.5341.com - Jax Systems, LLC, U.S.A.