I’m facing an issue with a Spring Boot 3.2.3 application using Hibernate 6.4.4, Logback, and an Oracle database (ojdbc10). I’m trying to disable the logging of Hibernate queries to the standard output.
Currently, Hibernate query logs are appearing in the stdout with the following format:
Hibernate: *query*
It seems like a simple System.out.println call, as there’s no timestamp included in the log.
I’ve tried setting various Spring properties to false or error as suggested in different answers, but it hasn’t worked:
spring.jpa.properties.hibernate.show_sql=false
spring.jpa.properties.hibernate.format_sql=false
logging.level.org.hibernate.type.descriptor.sql=error
logging.level.org.hibernate=error
logging.level.org.hibernate.SQL=error
logging.level.org.hibernate.orm.jdbc.bind=error
logging.level.org.hibernate.stat=error
logging.level.org.hibernate.SQL_SLOW=error
logging.level.org.hibernate.cache=error
logging.level.org.springframework.jdbc.core.JdbcTemplate=ERROR
logging.level.org.springframework.jdbc.core.StatementCreatorUtils=ERROR
Can someone help here?