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
- cannotResolveSymbol
- excel table
- logback #logstash #LoggingEventCompositeJsonEncoder #로그JSON
- multipleIntegrationFlow
- PostgreSQL #FOR UPDATE #SKIP LOCKED
- spring #redis #redis-cluster
- leetcode
- SnakeYAML
- yaml
- lombok #maven build #sym
- 로그테스트 #콘솔로그테스트 #System.out
- Two Sum
- Postgresql #MultiTruncate
- Python #Powertools
- PostgreSQL #sequnceName
- reverse integer
- aws #aws region #aws credential #aws region provider #aws credential provier
- add two numbers
- AWS #X-Ray
- QR코드읽기 #ReadQRCode
- mybatis @insert값 @update값
- excel to markdown
- json
- 로그파일인덱스
- spring-integration
- springintegration #파일감시 #디렉토리감시 #파일완료검사
- palindrome number
- Maven LF #메이븐 개행문자
- opencv로qr코드인식
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
글 보관함