refactor: logging and improved multiplex handling

This commit is contained in:
iceBear67
2026-07-15 16:43:43 +08:00
parent 6e0d7ec33f
commit ea33744ec9
13 changed files with 238 additions and 315 deletions
+7
View File
@@ -16,6 +16,8 @@ repositories {
dependencies {
implementation("io.vertx:vertx-core:5.1.5")
implementation("org.apache.logging.log4j:log4j-core:2.26.0")
implementation("org.apache.logging.log4j:log4j-jul:2.26.0") // route Netty/JUL fallback -> log4j2
testImplementation("org.junit.jupiter:junit-jupiter:5.10.2")
testRuntimeOnly("org.junit.platform:junit-platform-launcher:1.10.2")
}
@@ -28,6 +30,11 @@ java {
application {
mainClass = "io.icybear.redapricot.Main"
// Route java.util.logging (Netty's fallback) through Log4j2 on the `run`/`installDist`
// launch paths. The `java -jar` shadow-jar path sets this programmatically in Main.
applicationDefaultJvmArgs = listOf(
"-Djava.util.logging.manager=org.apache.logging.log4j.jul.LogManager"
)
}
tasks.test {