Spring Boot

[Spring Boot] 로그레벨 Debug 설정

먹세 2021. 10. 16. 21:44

src/main/resources/application.properties 파일에

아래와 같이 logging.level 접두사로 세팅 가능

# Logging
logging.level.org.springframework=info
logging.level.org.springframework.web=debug
logging.level.org.hibernate=error

 

https://docs.spring.io/spring-boot/docs/current/reference/html/howto.html#howto.logging

 

“How-to” Guides

Spring Boot has no mandatory logging dependency, except for the Commons Logging API, which is typically provided by Spring Framework’s spring-jcl module. To use Logback, you need to include it and spring-jcl on the classpath. The recommended way to do th

docs.spring.io

 

반응형