Hibernate log4j configuration

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

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s