3 Replies Latest reply on Feb 14, 2008 3:30 PM by Norman Richards

    Changing Seam Logger Category to DEBUG in JBoss

    Waacow S Newbie

      I'm new to Seam and trying to make good use out of it.  I'm struggling a bit sometimes to figure out how I used to be able to do things in the old way and then trying to do it the Seam way.


      For instance to configure a Logger. 


      Old Version


      package com.example.session;
      public class Example {
        private static final Log log = LogFactory.getLog(Example.class);
        public Example() {
          log.debug("init Example");
        } 
      }
      




      Seam Version


      package com.example.session;
      public class Example {
        @Logger private Log log;
        public Example() {
          log.debug("init Example");
        } 
      }
      



      Question:  Does 'log' in Seam version is the same as LogFactory.getLog(Example.class) which has a category name of com.example.session.Example.


      When running under JBoss (jboss-log4j.xml) seem to indicate the default log category will be INFO.


      I tried adding the following to jboss-log4j.xml and it still didn't output the debug statement in Example class.  Am I missing something here?


         <category name="com.example">
            <priority value="DEBUG"/>
         </category>