7 Replies Latest reply on Mar 18, 2011 9:28 AM by wdfink

    Which logger comes before the root logger?

    henk53

      On JBoss AS 6, I'm trying to let the JMS bridge from HornetQ log at trace level.

       

      The problem is that it's source code contains this:

       

       

      static
         {
            log = Logger.getLogger(JMSBridgeImpl.class);
      
            JMSBridgeImpl.trace = JMSBridgeImpl.log.isTraceEnabled();
         }
      
      

       

      Since the service class is referenced rather early in the boot process of JBoss AS, isTraceEnabled always seems to return false.

       

      in deploy/jboss-logging.xml I set the root loger to level TRACE:

       

       

         <root-logger>
            <!-- Set the root logger priority via a system property, with a default value. -->
            <level name="TRACE"/>
            <handlers>
               <handler-ref name="CONSOLE"/>
               <handler-ref name="FILE"/>
            </handlers>
         </root-logger>
      
      

       

      This TRACE level seems to kick in after JBoss AS has almost completely started, so way too late for the bridge which indefinitely remembers the level that happened to be active during the start of the server.

       

      Which logger I which file do I need to set to TRACE for the JMS bridge to pick this up?