FAQ Questions on Spring Boot
How to control logging with Spring Boot? By default, the SLF4j Logging is included in the Spring Boot starter package. To enable logging, create a application.properties file in the root of the resources folder. 1. application.properties logging.level.org.springframework.web=ERROR logging.level.com.waheedtechblog=DEBUG # Logging pattern for the console logging.pattern.console= "%d{yyyy-MM-dd HH:mm:ss} - %msg%n" # Logging pattern for file logging.pattern.file= "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{36} - %msg%n" logging.file=/Users/waheed/application.log Similarly we can configure in application.yml as well. 2. application.yml logging: level: org.springframework.web: ERROR com.waheedtechblog: DEBUG pattern: console: "%d{yyyy-MM-dd HH:mm:ss} - %msg%n" file: "%d{yyyy-MM-dd HH:mm:ss} [%thread] %-5level %logger{3...