You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@commons.apache.org by Ronaldo Nascimento <ro...@crapmail.com> on 2004/10/29 05:20:38 UTC
Enabling JDK1.4 logging for DEBUG level
I'm using commons-logging and I am having problems enabling debug statements to show up. I've added this option to the "java" command invocation:
-Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
Based on this onjava.com article http://www.onjava.com/pub/a/onjava/2002/06/19/log.html, I cannot see any levels that corresponds to a logger.debug(Object o).
What should I do to show my debug logs ?
Thanks
Ronaldo
_____________________________________________________________
Get your free Crapmail---> http://www.crapmail.com
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org
Re: Enabling JDK1.4 logging for DEBUG level
Posted by Craig McClanahan <cr...@gmail.com>.
The default mapping of Commons Logging levels to JDK logging levels is:
debug() --> FINE
error() --> SEVERE
fatal() --> SEVERE
info() --> INFO
trace() --> FINEST
warn() --> WARNING
Craig
On Thu, 28 Oct 2004 20:20:38 -0700 (PDT), Ronaldo Nascimento
<ro...@crapmail.com> wrote:
> I'm using commons-logging and I am having problems enabling debug statements to show up. I've added this option to the "java" command invocation:
>
> -Dorg.apache.commons.logging.Log=org.apache.commons.logging.impl.Jdk14Logger
>
> Based on this onjava.com article http://www.onjava.com/pub/a/onjava/2002/06/19/log.html, I cannot see any levels that corresponds to a logger.debug(Object o).
>
> What should I do to show my debug logs ?
>
> Thanks
>
> Ronaldo
>
> _____________________________________________________________
> Get your free Crapmail---> http://www.crapmail.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: commons-user-help@jakarta.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: commons-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-user-help@jakarta.apache.org