This Java tutorial explains how to set Logging level in the spring boot application.
Starting with Spring Boot v1.2.0.RELEASE, the settings in application.properties or application.yml do apply.
All the supported logging systems can have the logger levels set in the Spring Environment.
For example in application.properties using ‘logging.level.*=LEVEL’ where ‘LEVEL’ can be one of TRACE, DEBUG, INFO, WARN, ERROR, FATAL, OFF.
Example application.properties:
1 2 |
logging.level.org.springframework.web=DEBUG logging.level.org.hibernate=ERROR |