Issue
I have configured my pom.xml to include slf4j and bindings to log4j and exclude commons-logging as explained here and disabled Hibernate's own logging as explained href="https://stackoverflow.com/questions/467879/hibernate-3-4-with-slf4j-and-log4j">here.
I can suppress Spring's own messages, but Hibernate messages still come out despite my log4j.properties settings below.
log4j.debug=false
log4j.rootCategory=WARN, stdout
log4j.category.org.hibernate=ERROR, stdout
log4j.appender.stdout=org.apache.log4j.ConsoleAppender
log4j.appender.stdout.layout=org.apache.log4j.PatternLayout
log4j.appender.stdout.layout.ConversionPattern=%p %t %c - %m%n
log4j.category.org.springframework = ERROR
log4j.category.org.hibernate = ERROR
Here is my pom.xml file:
What could be the issue? I am seeing all the sql messages hibernate generates.
Solution
If you're using it, you might need to set <property name="show_sql">false</property>
in your hibernate configuration file.
Answered By - Xavi López
Answer Checked By - Senaida (JavaFixing Volunteer)