1 Reply Latest reply on Dec 2, 2004 9:45 AM by graham o'regan

    Debug logging for Hibernate

    Eugene Prokopiev Newbie

      Hi,

      I need to debug Hibernate in JBoss 4. I modified file server/default/conf/log4j.xml in default installation:

      <?xml version="1.0" encoding="UTF-8"?>
      <!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
      
      <log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/" debug="false">
      
       <appender name="CONSOLE" class="org.apache.log4j.ConsoleAppender">
       <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
       <param name="Target" value="System.out"/>
       <param name="Threshold" value="INFO"/>
       <layout class="org.apache.log4j.PatternLayout">
       <param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
       </layout>
       </appender>
      
       <category name="org.apache">
       <priority value="INFO"/>
       </category>
      
       <category name="org.jgroups">
       <priority value="WARN"/>
       </category>
      
       <category name="net.sf.hibernate">
       <priority value="DEBUG"/>
       </category>
      
       <category name="org.jboss">
       <priority value="INFO"/>
       </category>
      
       <root>
       <appender-ref ref="CONSOLE"/>
       </root>
      
      </log4j:configuration>
      


      But there are no DEBUG messages on console. What is wrong?