5 Replies Latest reply on Aug 17, 2002 7:46 AM by adrian.brock

    isTraceEnabled

    toddrun

      I realize this is probably a stupid question, but how do I enable TRACE in jboss3.0.1, specifically for the InternalManagedConnectionPool class.

      I've edited the log4j.xml config file, but obviously I haven't done it correctly.

      Thanks in advance.

        • 1. Re: isTraceEnabled





          Regards,
          Adrian

          • 2. Re: isTraceEnabled

            Sorry I should look more closely at the source.

            I think it is all logged against the category

            org.jboss.resource.connectionmanager.JBossManagedConnectionPool

            Regards,
            Adrian

            • 3. Re: isTraceEnabled
              toddrun

              Thanks, I actually set it for the whole org.jboss.resource.connectionmanager and it's working great.

              • 4. Re: isTraceEnabled
                toddrun

                Actually, I guess I have another question. It appears that everything in org.jboss.resource.connectionmanager is using a single instance of "log", but I can't seem to find in the source code where "log" is instanciated.

                I want to use "log" from a servlet. I thought I could just call:
                log = Logger.getLogger(getClass());
                and then set up a new entry in log4j.xml, but I'm not getting any logging.

                Any help is appreciated.

                • 5. Re: isTraceEnabled

                  The class I mentioned above extends
                  ServiceMBeanSupport (it is in there).

                  Regards,
                  Adrian