Hi,
As you know hibernate uses log4j for its loging mechanism.
put a log4j.properties in your class path and config it some thing like below:
Code:
# Set root logger level to DEBUG and its only appender to A1.
log4j.rootLogger= ERROR, A1
# Now deal with hibernate packages to narrow packeges by changinf #below to FATAL, ERROR, INFO, WARN, DEBUG
log4j.org.hibernate=INFO, A1
log4j.org.hibernate.tool.ant=ERROR, A1
log4j.org.hibernate.jdbc=ERROR, A1
log4j.org.hibernate.collection=ERRORm A1
# A1 is set to be a ConsoleAppender.
log4j.appender.A1=org.apache.log4j.ConsoleAppender
# A1 uses PatternLayout.
log4j.appender.A1.layout=org.apache.log4j.PatternLayout
log4j.appender.A1.layout.ConversionPattern=%-4r [%t] %-5p %c %x - %m%n
Regards,
Alireza Fattahi
--------------------------
Please rate if it helped!