Skip to content

Conversation

@JihwanByun
Copy link
Contributor

@JihwanByun JihwanByun commented Jan 2, 2026

수정 이유

추가/수정한 기능

  • MDC 기반 스레드 로컬을 활용하여 로깅 필터, 규격 등록 및 변경 (clientIp, method, status 등 패턴 추가)
  • @component 등록이 아닌, Bean 수동 등록을 통한 서블릿 내 순서, url 패턴에 따른 관리 용이하도록 변경
  • 으로 변경

로깅 결과 화면
image

특이사항

  • aop, virtual thread 활용에 따른 추가 개발 여부와 일정

check list

  • api health check api로 테스트하였습니다.
  • 모든 단위 테스트를 돌려보고 기존에 작동하던 테스트에 영향이 없는 것을 확인했나요?
  • 추가/수정사항을 설명했나요?

@JihwanByun JihwanByun requested a review from ohksj77 January 2, 2026 07:35
@JihwanByun JihwanByun self-assigned this Jan 2, 2026
@JihwanByun JihwanByun added the feature New feature or request label Jan 2, 2026
Copy link
Member

@ohksj77 ohksj77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

mask 추가 제가 놓쳤었는데 추가해주셔서 감사합니다.

logback 자체에 maskPattern 태그로 추가하는 방안도 혹시 고려해보셨는지 궁금합니다. ref

지금 방식은 유지보수 측면에서 좋을지 고민입니다.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

좋은 생각인 거 같습니다. 확장성, 안정성 면에서 불안한 설계라고 생각이 들어 수정해서 리뷰 받겠습니다

@ohksj77 ohksj77 linked an issue Jan 3, 2026 that may be closed by this pull request
Copy link
Member

@ohksj77 ohksj77 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다.

@JihwanByun JihwanByun merged commit fbd795b into develop Jan 6, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEAT] 서비스 로깅 전략

3 participants