[Bug] Server SOFA logging adapter invokes a removed Logback API
Check Ahead
- Searched existing issues for sofa-common-tools.
- Willing to fix.
Issue Description
Bolt 1.6.7 brings sofa-common-tools 1.0.12 into the server. Its logging adapter invokes ContextInitializer.configureByResource(URL), which was removed from modern Logback. SOFA catches the linkage error and silently falls back to the application log space, so the tests pass while middleware log isolation is broken.
Evidence
Java 17 CI job, commit 96e84e52f, raw lines 28120 and 32109: Build ILoggerFactory error / NoSuchMethodError. This happens during normal Raft RPC initialization.
Expected behavior
Initialize the SOFA log space successfully using a compatible adapter and keep its logger isolated from the application context.
Reproduction
Initialize a SOFA log space backed by a valid Logback XML resource and assert that its LoggerContext differs from LoggerFactory.getILoggerFactory(). The old adapter falls back and fails this assertion. The server-only 2.1.0 override passes and can write log events.
Environment
Seata 2.8.0-SNAPSHOT server, Java 17, Spring Boot 4 / Logback 1.5.
Source: apache/incubator-seata