Hy am running JBoss-4.0.0 and Hibernate 2.1.7
Am setting up the following appender and category in my jboss log4j.xml.
The appender seems to create the log file but nothing gets appended to it... Bassically! I want to see what SQL is beeing created and what values are beeing passed through the SQL, because am having problems wiuth my queries that use a date format...
Thanks
Code:
<appender name="HIBERNATE" class="org.jboss.logging.appender.RollingFileAppender">
<param name="File" value="${jboss.server.home.dir}/log/hibernate.log"/>
<param name="Append" value="false"/>
<param name="MaxFileSize" value="500KB"/>
<param name="MaxBackupIndex" value="1"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d %-5p [%c] %m%n"/>
</layout>
</appender>
<category name="net.sf.hibernate.sql">
<priority value="DEBUG" />
<appender-ref ref="HIBERNATE"/>
</category>