jBoss 4.0.4

I am trying to print a debug level message in a category which I think is set 
up with "DEBUG". Yet I am not seeing the message! I'd appreciate it if somebody 
could point out what I am doing wrong. Here are excerpts of the log4j.xml:


  |        <appender name="FILE" 
class="org.jboss.logging.appender.DailyRollingFileAppender">
  |           <errorHandler 
class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |           <param name="File" 
value="${jboss.server.home.dir}/log/server.log"/>
  |           <param name="Append" value="false"/>
  |     
  |           <!-- Rollover at midnight each day -->
  |           <param name="DatePattern" value="'.'yyyy-MM-dd"/>
  |     
  |           <!-- Rollover at the top of each hour
  |           <param name="DatePattern" value="'.'yyyy-MM-dd-HH"/>
  |           -->
  |     
  |           <layout class="org.apache.log4j.PatternLayout">
  |              <!-- The default pattern: Date Priority [Category] Message\n 
-->
  |              <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
  |     
  |              <!-- The full pattern: Date MS Priority [Category] 
(Thread:NDC) Message\n
  |              <param name="ConversionPattern" value="%d %-5r %-5p [%c] 
(%t:%x) %m%n"/>
  |               -->
  |           </layout>
  |       </appender>
  | 
  |        <root>
  |             <priority value="info"/>
  |             <appender-ref ref="CONSOLE" /> 
  |             
  |             <appender-ref ref="FILE"/>
  |        </root>
  | 
  |       <category name="com.comp.bg.notification">
  |          <priority value="DEBUG" />
  |          <appender-ref ref="JDBC"/>
  |          <appender-ref ref="FILE"/>
  |       </category>
  | 
  | 

A class, com.comp.bg.notification.GulSession gets a logger:


  |     private static Logger log = Logger.getLogger(GulSession.class);
  | 

But the following is not printing a DEBUG statement in server.log!


  | 
  | log.debug("print this");
  | 


View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3980481#3980481

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3980481
_______________________________________________
jboss-user mailing list
jboss-user@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to