1 Reply Latest reply on Aug 2, 2007 2:18 PM by genman

    lo4j levels with Jboss App server

    trouby

      Hey,

      I have some classes which I've added a static reference to the logger as:

      private static Logger logger = Logger.getLogger(MyClass.class.getName());
      

      where MyClass full pkg is "rootPkg.subPkg.MyClass"

      Then I simply use the logger in many places by invoking logger.debug("message"), etc...


      Now assuming I want to have logs for ALL levels -ONLY- for MyClass, how do I do it?

      I tried to add to jboss-log4j.xml a category such as:

      <category name="rootPkg.subPkg">
       <priority value="TRACE"/>
      </category>
      


      but it did not affect anything and I only got messages at INFO level,

      In the console appender, I have seen the
      <param name="Threshold" value="INFO"/>'
      


      parameter, but when I change this line it affects all loggers in all packages,



      any clue?

      Thanks,

      Asaf.