To make hibernate log absolutely everything it may log add a following line to log4j configuration:
<logger name="org.hibernate"> <level value="ALL" /> <appender-ref ref="FILE"/> </logger>
FILE should be replaced with the name of the logger you want to use.
E.g. on JBoss the log4j configuration is placed in $JBOSS_HOME/server/[server configuration name]/conf/jboss-log4j.xml