title: Disabling Hibernate log messages in a Spring application
body: <p>I have configured my pom.xml to include slf4j and bindings to log4j and exclude commons-logging as explained <a href="http://blog.springsource.com/2009/12/04/logging-dependencies-in-spring/" rel="noreferrer">here</a> and disabled Hibernate's own logging as explained <a href="https://stackoverflow.com/questions/467879/hibernate-3-4-with-slf4j-and-log4j">here</a>. </p>
  
  <p>I can suppress Spring's own messages, but Hibernate messages still come out despite my log4j.properties settings below.</p>
  
  <pre><code>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
  </code></pre>
  
  <p><a href="http://dpaste.com/642634/" rel="noreferrer">Here</a> is my pom.xml file: </p>
  
  <p>What could be the issue? I am seeing all the sql messages hibernate generates.</p>