Skip to content

Add Discord logging appender configuration and dependencies#48

Merged
jeyongsong merged 4 commits intomainfrom
logback-discord-appender
Apr 8, 2026
Merged

Add Discord logging appender configuration and dependencies#48
jeyongsong merged 4 commits intomainfrom
logback-discord-appender

Conversation

@jeyongsong
Copy link
Copy Markdown
Member

This pull request introduces Discord logging integration for error notifications in the production environment. The main changes involve configuring a new Logback appender to send error-level logs to a Discord webhook, and updating configuration files to support this feature.

Discord Logging Integration:

  • Added a new discord-appender.xml Logback configuration that defines a DISCORD appender using com.github.napstr.logback.DiscordAppender, and an ASYNC_DISCORD async appender for error-level logs.
  • Updated logback-spring.xml to include the new Discord appender and route error logs to Discord in the prod profile.

Configuration Updates:

  • Added logging.discord.webhook-uri configuration to application-prod.yml to provide the Discord webhook URI via secrets.
  • Updated application.yml to load the new moa-secret/discord.yml secret file.

Secret Management:

  • Updated the moa-secret submodule to the latest commit, potentially including the new Discord secret file.

Copilot AI review requested due to automatic review settings April 8, 2026 12:27
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 8, 2026

Test Results

47 tests   47 ✅  0s ⏱️
 6 suites   0 💤
 6 files     0 ❌

Results for commit 7e271ef.

♻️ This comment has been updated with latest results.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adds production error-notification logging to Discord by introducing a Logback Discord appender, wiring it into the prod Logback profile, and adding configuration/secret imports for the webhook URL.

Changes:

  • Add a Logback DISCORD + ASYNC_DISCORD appender configuration and include it in the prod logging profile.
  • Add logging.discord.webhook-uri to application-prod.yml and import a new moa-secret/discord.yml secret file.
  • Add the Discord appender dependency and the JitPack repository to Gradle.

Reviewed changes

Copilot reviewed 5 out of 6 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
src/main/resources/logback/discord-appender.xml New Discord + async Logback appender definition and message pattern
src/main/resources/logback-spring.xml Includes the Discord appender and attaches it to the prod root logger
src/main/resources/application.yml Imports the Discord secret YAML from the moa-secret submodule
src/main/resources/application-prod.yml Adds the production logging.discord.webhook-uri property
build.gradle.kts Adds JitPack repository and the logback-discord-appender dependency

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@jeyongsong jeyongsong merged commit 019fb1d into main Apr 8, 2026
3 checks passed
@jeyongsong jeyongsong deleted the logback-discord-appender branch April 8, 2026 12:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants