You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Alex Karasulu <ao...@bellsouth.net> on 2004/04/27 21:08:11 UTC
[logging] How can I set the log level on Jdk14Logger
Hi,
I've trying to use commons-logging on the 1.4 platform and it
looks as though the Jdk14Logger is swapped in for the SimpleLog
so my settings for configuring the simple log as expected would
have no effect.
I would like to turn on "debug" level logging but I can't seem to figure
out how to do this in commons-logging without just accessing the
JDK1.4 logging mechanism which I don't want to do since this would
defeat the purpose for using commons-logging in the first place.
Alex
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: [logging] How can I set the log level on Jdk14Logger
Posted by "matthew.hawthorne" <ma...@apache.org>.
Alex Karasulu wrote:
> I would like to turn on "debug" level logging but I can't seem to figure
> out how to do this in commons-logging without just accessing the
> JDK1.4 logging mechanism which I don't want to do since this would
> defeat the purpose for using commons-logging in the first place.
That's exactly how you do it, and in my opinion, it doesn't defeat the
purpose. commons-logging leaves the configuration of the underlying
logging implementation to the user.
Upon examining the different configuration methods of both log4j and
java.util.logging, I think this was a good choice.
You can also set the system property (I believe it's
org.apache.commons.logging.log) so that you get a SimpleLog instance no
matter what your environment looks like. The details are in the
documentation.
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org