[✨ feat] HTTP 요청/응답 로깅 구현 #214
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
📄 Work Description
⚙️ ISSUE
📷 Screenshot
local 환경 콘솔 예시)
staging, prod는 머지하고 나서 ec2 접속해서 파일 잘 생성되는지 확인해봐야할 것 같아여!! 우선 staging 환경부터 머지하고 확인하겠습니다~
💬 To Reviewers
Profile별 요청/응답 로깅 전략
☑️
Local환경☑️
Staging환경/home/ubuntu/dev-logs/terning.log날짜 시각 [스레드명] 로그레벨 로거명 [traceId] - 메시지2025-03-30 14:21:03 [main] INFO com.example.SomeClass [NoTraceID] - Hello log☑️
Prod환경/home/ubuntu/prod-logs/terning.log날짜 시각 [스레드명] 로그레벨 로거명 [traceId] - 메시지2025-03-30 14:21:03 [main] INFO com.example.SomeClass [NoTraceID] - Hello log🌀 Staging, Prod 환경에서의 롤링 동작 방식
로그 기록 파일
롤링 조건
롤링된 파일 형식 예시
⚡️YML 설정
🔗 Reference
더 자세한 로깅 구현하면서 의사결정사항 및 구현 방식등은 빠르게 노션에 상세히 정리해서 공유드리겠슴당!!]
https://pgmjun.tistory.com/188
https://prohannah.tistory.com/182
https://velog.io/@0_0_yoon/ContentCachingRequestWrapper-ContentCachingResponseWrapper-wxndicpk