- 로그 경로 외부에서 설정
jvm 설정에 -Dlog.path=경로와 같이 설정 가능
yml에서는
logging.file.path=${log.path}
로 사용해야 함
- Spring Boot with Logback + springProperty
https://stackoverflow.com/questions/43482050/spring-boot-with-logback-springproperty
https://docs.spring.io/spring-boot/docs/2.1.8.RELEASE/reference/html/boot-features-logging.html
https://docs.spring.io/spring-boot/docs/current-SNAPSHOT/reference/htmlsingle/#boot-features-logback-extensions
- application.yml + logback-spring.xml 혼합 설정
http://java.ihoney.pe.kr/m/397
https://ayoteralab.tistory.com/entry/Spring-Boot-07-Logback-%EA%B5%AC%EC%84%B1%ED%95%98%EA%B8%B0
https://eblo.tistory.com/60
https://4urdev.tistory.com/m/55
https://meetup.toast.com/posts/149
- logback-spring.xml 설정
https://goddaehee.tistory.com/206
- Common Application Properties for application.yml
https://docs.spring.io/spring-boot/docs/current/reference/html/application-properties.html#application-properties.core
- 상세설명
https://javabom.tistory.com/68
- logback if condition 사용 시 주의 사항
https://lng1982.tistory.com/165
'log' 카테고리의 다른 글
log4jdbc spring boot (0) | 2020.04.20 |
---|---|
printStackTrace To String (0) | 2019.07.03 |
Logback shutdown hook 사용하는게 좋단다 (0) | 2018.03.16 |
logback을 사용해야 하는 이유 (0) | 2017.07.20 |
log4j line number 나오게 하기 (0) | 2017.07.17 |