diff --git a/CHANGELOG.md b/CHANGELOG.md index ef4cc3cb..57a5c2d4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,9 @@ ## 26.0-SNAPSHOT - unreleased +### ⚙️ Technical +* Align all-built in log names to have form "App-Cluster-xxx.log" + ## 25.0.0 - 2024-11-15 ### 💥 Breaking Changes (upgrade difficulty: 🟢 LOW) diff --git a/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy b/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy index 61ed161e..5600eaf9 100644 --- a/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy +++ b/src/main/groovy/io/xh/hoist/configuration/LogbackConfig.groovy @@ -86,9 +86,10 @@ class LogbackConfig { static void defaultConfig(Script script) { withDelegate(script) { - def appLogName = "${Utils.appCode}-${ClusterService.instanceName}", - trackLogName = "$appLogName-track", - monitorLogName = "$appLogName-monitor" + def appLogRoot = "${Utils.appCode}-${ClusterService.instanceName}", + appLogName = "$appLogRoot-app", + trackLogName = "$appLogRoot-track", + monitorLogName = "$appLogRoot-monitor" //---------------------------------- // Register Hoist-Core's Conversion Specifiers