Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feat/178] 로그 파일 일별 저장 설정 #180

Merged
merged 6 commits into from
Jan 20, 2025
Merged

[Feat/178] 로그 파일 일별 저장 설정 #180

merged 6 commits into from
Jan 20, 2025

Conversation

Eunjin3395
Copy link
Member

@Eunjin3395 Eunjin3395 commented Jan 20, 2025

🚀 개요

로그 파일 일별 저장 설정

⏳ 작업 상세 내용

  • Logback을 이용해 로그 파일 일별 저장 설정
  • 로그 파일별 최대 크기 10MB 제한 적용
  • �ERROR 레벨 로그는 별도 파일로 저장하도록 설정
  • 도커 컨테이너의 로그 저장 디렉토리를 EC2 특정 경로에 마운트

📝 더 꼼꼼히 봐야할 부분

  • 기존에는 도커 컨테이너에만 로그가 저장되어서 서버를 재배포했을 때 컨테이너가 내려가면서 로그가 전부 삭제되는 문제가 있었습니다. 이걸 EC2 인스턴스의 특정 경로에도 동시에 로그를 기록하도록 설정해서 도커 컨테이너가 내려가더라도 EC2에는 로그가 남아있도록 설정했습니다!
  • 배포할 때마다 도커 이미지가 계속 쌓여서
          # 8. 기존 Docker 이미지 삭제
      - name: 기존 Docker 이미지 삭제
        run: docker image prune -a
    
    이걸 github_actions.yml에 추가했는데 그래도 기존 이미지 삭제가 안되더라구요 ㅠㅠ 어떻게 해야하는지 아시는 분 계신가요..

🔍 반드시 참고해야하는 변경 사항

  • 없을 경우 체크

@Eunjin3395 Eunjin3395 self-assigned this Jan 20, 2025
@Eunjin3395 Eunjin3395 linked an issue Jan 20, 2025 that may be closed by this pull request
3 tasks
Copy link
Contributor

@rimi3226 rimi3226 left a comment

Choose a reason for hiding this comment

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

...그 prune 그거 해도 안되더라구요ㅠㅜㅠㅜ 저도 한 번 찾아보던가 주기적으로 지워줘야할 것 같습니다............................

@rimi3226
Copy link
Contributor

진짜 수고하셨습니다ㅠㅜㅠㅜㅜ🩷

@rimi3226 rimi3226 merged commit 4c182ca into develop Jan 20, 2025
1 check passed
@Eunjin3395 Eunjin3395 deleted the feat/178 branch January 20, 2025 14:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

✨ [Feat] 로그 파일 일별 저장 설정
2 participants