Skip to content

feat: 디스코드 에러 로깅 기능 추가#172

Merged
Jjiggu merged 1 commit into
developfrom
feature/#171-add-error-logging
Jul 27, 2025
Merged

feat: 디스코드 에러 로깅 기능 추가#172
Jjiggu merged 1 commit into
developfrom
feature/#171-add-error-logging

Conversation

@Jjiggu

@Jjiggu Jjiggu commented Jul 27, 2025

Copy link
Copy Markdown
Contributor

작업 요약

디스코드 에러 로깅 기능 추가

Issue Link

#171

문제점 및 어려움

해결 방안

Reference

Summary by CodeRabbit

  • New Features

    • Discord 웹훅을 통한 로그 알림 기능이 추가되었습니다.
    • 개발 환경에서 콘솔 및 Discord로 로그를 전송하는 로깅 구성이 도입되었습니다.
    • 로그 메시지 포맷 및 저장 경로 설정이 추가되었습니다.
  • Chores

    • JitPack Maven 저장소가 빌드 구성에 추가되어 의존성 관리가 확장되었습니다.
    • 로깅 및 AOP 관련 라이브러리 의존성이 추가되었습니다.

@Jjiggu Jjiggu self-assigned this Jul 27, 2025
@Jjiggu Jjiggu added the enhancement New feature or request label Jul 27, 2025
@Jjiggu Jjiggu merged commit 290432e into develop Jul 27, 2025
1 check passed
@coderabbitai

coderabbitai Bot commented Jul 27, 2025

Copy link
Copy Markdown

Caution

Review failed

The pull request is closed.

"""

Walkthrough

이번 변경 사항은 두 개의 Gradle 빌드 설정 파일에 JitPack Maven 저장소와 로깅 관련 의존성을 추가하고, 각 API 모듈에 Logback 개발 환경 설정 파일과 로깅 변수 프로퍼티 파일을 새로 도입했습니다. Discord Webhook을 통한 로그 전송 기능이 Logback 설정에 포함되었습니다.

Changes

파일/코호트 변경 요약
build.gradle
nowait-app-admin-api/build.gradle
nowait-app-user-api/build.gradle
JitPack Maven 저장소 추가 및 Spring Boot AOP, Jansi, Discord Logback appender 등 로깅 관련 의존성 추가
nowait-app-admin-api/src/main/resources/logback-admin-dev.xml
nowait-app-user-api/src/main/resources/logback-user-dev.xml
개발 환경용 Logback XML 설정 파일 신규 추가, Discord Webhook 연동 및 Spring 프로필별 로깅 구성 반영
nowait-app-admin-api/src/main/resources/logback-variables.properties
nowait-app-user-api/src/main/resources/logback-variables.properties
로그 경로, 파일명, 패턴 등 로깅 변수 프로퍼티 파일 신규 추가

Sequence Diagram(s)

sequenceDiagram
    participant Application
    participant Logback
    participant DiscordWebhook

    Application->>Logback: 로그 이벤트 발생 (예: ERROR)
    alt Discord 연동 프로필 활성화 (admin/user)
        Logback->>DiscordWebhook: 포맷된 로그 메시지 전송 (비동기)
        DiscordWebhook-->>Logback: Discord 채널에 메시지 전송 결과
    end
    Logback->>Application: 콘솔/파일 등 기존 로그 처리
Loading

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~8분

Suggested reviewers

  • HyemIin

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 816a63f and d2e31b5.

📒 Files selected for processing (7)
  • build.gradle (1 hunks)
  • nowait-app-admin-api/build.gradle (2 hunks)
  • nowait-app-admin-api/src/main/resources/logback-admin-dev.xml (1 hunks)
  • nowait-app-admin-api/src/main/resources/logback-variables.properties (1 hunks)
  • nowait-app-user-api/build.gradle (2 hunks)
  • nowait-app-user-api/src/main/resources/logback-user-dev.xml (1 hunks)
  • nowait-app-user-api/src/main/resources/logback-variables.properties (1 hunks)
✨ Finishing Touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/#171-add-error-logging

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai generate unit tests to generate unit tests for this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions Bot requested a review from HyemIin July 27, 2025 17:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant