feat: logback 롤링 도입#2020
Merged
Merged
Conversation
dh2906
approved these changes
Sep 30, 2025
Contributor
dh2906
left a comment
There was a problem hiding this comment.
고생하셨습니다!
오... 확실히 로그 파일을 s3에 적재해둔다면 디스크 용량 부담도 줄고 파일 유실의 위험도 줄 것 같아요!
kih1015
approved these changes
Oct 1, 2025
Member
kih1015
left a comment
There was a problem hiding this comment.
좋네요👍
군복무할때도 한달 단위로 데이터 압축해서 덤프 떠놨었는데 비슷한방식같네요
BaeJinho4028
approved these changes
Oct 1, 2025
Collaborator
BaeJinho4028
left a comment
There was a problem hiding this comment.
운영 서버에서는 WARN 이상, 스테이지 환경에서는 INFO 이상으로 yml에 적용해주면 좋을 것 같네요.
고생하셨습니다 👍
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
🔍 개요
logs/app.log에 INFO 레벨 이상의 로그를 찍고 있음🚀 주요 변경 내용
Appender 수정
FileAppender에서RollingFileAppender으로 수정했습니다..gz으로 압축해서 관리됩니다.💬 참고 사항
Appender : log의 출력 대상과 형식을 설정
RollingPolicy : 로그 보관 정책
TriggeringPolicy : 롤링 트리거
용량 제한을 걸지 않은 이유는 달마다 롤링을 했을 때 로그 파일의 용량이 그렇게 크지 않을것으로 예상했기 때문입니다.
후속작업으로
aws s3 sync으로 s3 적재해볼 생각입니다.✅ Checklist (완료 조건)