Total Pageviews

2018/04/15

[Spring Boot] How turn off debug log in spring boot?

Problem
I am using spring boot to implement Neo4j, but the log file contains lots of debug message


How-To
Add the following configuration in your application.yml:
spring:
  data:
    neo4j:
      uri: bolt://localhost
      username: neo4j
      password: secret

logging:
  level:
    root: INFO
    org:
      springframework: 
        web: WARN
      hibernate: ERROR

Get rid of debug level log successfully:


No comments: