#logging
logging:
pattern:
console: "%d{yyyy-MM-dd HH:mm:ss.SSS, Asia/Seoul} %highlight(${LOG_LEVEL_PATTERN:-%5p}) [%t] [%X{requestUri}] %highlight(%logger{36}){cyan} [%L] | %msg%n"
file: "%d{yyyy-MM-dd HH:mm:ss.SSS, Asia/Seoul} ${LOG_LEVEL_PATTERN:-%5p} [%t] [%X{requestUri}] %logger{36} [%L] | %msg%n"
- yaml파일 설정
https://stackoverflow.com/questions/51540835/set-timezone-of-logging-messages
set timezone of logging messages
Is there a way to configure logback in spring boot to output the local time of the log messages in a different timezone than the system timezone? I would like to set it up over configuration (i.e.
stackoverflow.com
- logback-spring.xml 파일 설정
https://velog.io/@kwg527/Spring-logback-%EC%8B%9C%EA%B0%84-%EC%84%A4%EC%A0%95%ED%95%98%EA%B8%B0
[Spring] logback 시간 설정하기
어제 남겼듯이, 배포환경에서 로그를 찍으면 9시간 전으로 찍히는 문제가 발생했다.TIL 20220720결론부터 말하면 해결이 되었다!logback-spring.xml에도 시간 설정을 해주면 되는 것이었다.| logback-spring.x
velog.io
'log' 카테고리의 다른 글
logback masking 처리 (0) | 2023.08.18 |
---|---|
logback rolling policy when shutdown (0) | 2023.08.09 |
logback-spring.xml 간단 설명 - full package 출력 (0) | 2023.02.07 |
log4j2 설정 (0) | 2022.10.09 |
전자정부프레임워크 log4j를 logback으로 변경 (0) | 2022.10.08 |