Q: Disabling Hibernate log messages in a Spring application 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 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.

A: If you're using it, you might need to set <property name="show_sql">false</property> in your hibernate configuration file.

A: For those users who tried everything proposed and still saw the sql logs:
If you annotated your test with @DataJpaTest, set the (not so obvious) showSql-field inside to false.
@DataJpaTest(showSql = false)


A: And if you still can't disable show_sql try something like this
logging.level.org.hibernate.SQL=INFO
logging.level.org.hibernate.type.descriptor.sql.BasicBinder=INFO


A: If anyone looks up this question while browsing for answers:
IF you are using spring-boot-starter-data-jpa, set spring.jpa.show_sql = false in your application.properties file.

A: Complementing Jørgen Skår Fischer's answer, in my specific case I had to add both settings in the application.properties file.
spring.jpa.show-sql=false 

and
spring.jpa.properties.hibernate.show_sql=false

