본문 바로가기
웹개발/스프링부트

스프링부트 로그레벨 설정

by 어컴띵 2021. 3. 30.

참조 : docs.spring.io/spring-boot/docs/2.4.4/reference/htmlsingle/#boot-features-logging

 

Spring Boot Reference Documentation

This section goes into more detail about how you should use Spring Boot. It covers topics such as build systems, auto-configuration, and how to run your applications. We also cover some Spring Boot best practices. Although there is nothing particularly spe

docs.spring.io

로그 형식

날짜 , 시간 / 로그레벨: ERROR, WARN, INFO, DEBUG, TRACE / Process ID / A --- 로그메세지 시작 / [스레드네임] / Logger 이름 / 로그 메세지

 

로그레벨설정

application.yml

logging:
  level:
    root: "warn"
    org.springframework.web: "debug"
    org.hibernate: "error"