-
1. Re: how to make log.trace() work inside MBeans
davekohr Jul 28, 2004 9:03 PM (in response to davekohr)I spoke a bit too soon. trace.log() statements from org.apache.commons.logging.Log objects show up, even if you set the log level to DEBUG. This means I can't use them.... Does anyone know how to get trace() to work correctly?
-
2. Re: how to make log.trace() work inside MBeans
tsangcn Jul 29, 2004 1:06 AM (in response to davekohr)Since JBoss is using Log4J for logging, org.apache.commons.logging.Log will use Log4J for logging too.
But Log4J defines priority (logging) levels : FATAL, ERROR, WARN, INFO, DEBUG.
While commons.logging defines logging levels: fatal, error, warn, info, debug, trace.
So the trace level is mapped to DEBUG.
See http://jakarta.apache.org/commons/logging/api/org/apache/commons/logging/impl/Log4JLogger.html#trace(java.lang.Object) -
3. Re: how to make log.trace() work inside MBeans
davekohr Jul 29, 2004 7:35 PM (in response to davekohr)Thanks. I knew log4j has DEBUG but not TRACE levels. I was hoping commons-logging provided some way to implement a TRACE level separate from the DEBUG level, but I guess it doesn't. Oh well.