Errorping is a lightweight library for Spring Boot that sends detailed error logs via Discord webhooks in real-time.
- Spring Boot 3.5.4
- JDK 17
- Servlet-based stack (
spring-boot-starter-web)
- Discord Webhook Integration: Sends highly readable Embed messages including status codes, request URL, and exception class.
- Ready-to-use Templates: Provides a pre-configured GlobalExceptionHandler and Logback configuration for immediate integration.
- Easy Configuration: Enable Discord alerting simply via application.yml without any additional code modifications.
In the errorping project:
./gradlew publishToMavenLocalThen, in your application:
dependencies {
implementation "com.jhssong:errorping:0.0.0-SNAPSHOT"
}Check most recent version at here
repositories {
maven {
url = uri("https://maven.pkg.github.com/jhssong/errorping")
credentials {
username = project.findProperty("gpr.user")
password = project.findProperty("gpr.key")
}
}
}
dependencies {
implementation "com.jhssong:errorping:1.0.0"
}GitHub Packages requires authentication even for public repositories.
Errorping uses Spring Boot @ConfigurationProperties to load alert-related settings.
To enable Discord alerting, add the following to your application.yml:
errorping:
discord-webhook-url: ${DISCORD_WEBHOOK_URL}For more examples, check errorping-example

