Add Discord logging appender configuration and dependencies#48
Merged
jeyongsong merged 4 commits intomainfrom Apr 8, 2026
Merged
Add Discord logging appender configuration and dependencies#48jeyongsong merged 4 commits intomainfrom
jeyongsong merged 4 commits intomainfrom
Conversation
Test Results47 tests 47 ✅ 0s ⏱️ Results for commit 7e271ef. ♻️ This comment has been updated with latest results. |
Contributor
There was a problem hiding this comment.
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_DISCORDappender configuration and include it in theprodlogging profile. - Add
logging.discord.webhook-uritoapplication-prod.ymland import a newmoa-secret/discord.ymlsecret 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.
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.
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:
discord-appender.xmlLogback configuration that defines aDISCORDappender usingcom.github.napstr.logback.DiscordAppender, and anASYNC_DISCORDasync appender for error-level logs.logback-spring.xmlto include the new Discord appender and route error logs to Discord in theprodprofile.Configuration Updates:
logging.discord.webhook-uriconfiguration toapplication-prod.ymlto provide the Discord webhook URI via secrets.application.ymlto load the newmoa-secret/discord.ymlsecret file.Secret Management:
moa-secretsubmodule to the latest commit, potentially including the new Discord secret file.