net.logstash.logback.encoder.LoggingEventCompositeJsonEncoder을 이용한 JSON포맷 동적 필드 로그 생성
개요 로그를 JSON으로 출력하는 방법은 여러가지가 있다. Logback의 LoggingEventCompositeJsonEncoder을 이용해서 출력하는 경우에 대해 설명한다. 이름에서 알겠지만 LoggingEventCompositeJsonEncoder이기 때문에 JSON형식일 때만 가능하다. LoggingEventCompositeJsonEncoder을 이용하는 경우 동적 필드 설정도 가능하다. (다른 encoder에서도 기본 지원인지는 미확인) 구동 환경 pom.xml org.springframework.boot spring-boot-starter-parent 3.2.0-SNAPSHOT org.springframework.boot spring-boot-starter-web org.springframew..
IT
2023. 8. 14. 17:00
공지사항
최근에 올라온 글
최근에 달린 댓글
- Total
- Today
- Yesterday
링크
TAG
- 로그파일인덱스
- json
- spring-integration
- lombok #maven build #sym
- PostgreSQL #sequnceName
- excel to markdown
- multipleIntegrationFlow
- Maven LF #메이븐 개행문자
- 로그테스트 #콘솔로그테스트 #System.out
- QR코드읽기 #ReadQRCode
- PostgreSQL #FOR UPDATE #SKIP LOCKED
- cannotResolveSymbol
- reverse integer
- logback #logstash #LoggingEventCompositeJsonEncoder #로그JSON
- excel table
- leetcode
- aws #aws region #aws credential #aws region provider #aws credential provier
- Python #Powertools
- SnakeYAML
- palindrome number
- AWS #X-Ray
- spring #redis #redis-cluster
- yaml
- Postgresql #MultiTruncate
- Two Sum
- add two numbers
- springintegration #파일감시 #디렉토리감시 #파일완료검사
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 | 31 |
글 보관함