Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#11290] Add application logger pattern full-replacement support. #11293

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
[#11290] logback-it, update TraceId value check
yjqg6666 committed Jul 26, 2024
commit 456a2ada5eae4668015597f7312b09c63c5ca7e8
Original file line number Diff line number Diff line change
@@ -48,7 +48,9 @@ public void test() {

checkVersion(logger);

Assertions.assertNotNull(MDC.get("PtxId"), "txId");
String ptxId = MDC.get("PtxId");
Assertions.assertNotNull(ptxId, "TxId");
Assertions.assertTrue(ptxId.contains("build.test.0^1"), "TxId value");
Assertions.assertNotNull(MDC.get("PspanId"), "spanId");
}

@@ -72,6 +74,7 @@ public void run() {
Assertions.assertNotNull(log, "log null");
Assertions.assertTrue(log.contains(msg), "contains msg");
Assertions.assertTrue(log.contains("TxId"), "contains TxId");
Assertions.assertTrue(log.contains("build.test.0^1"), "TxId value");

Assertions.assertNotNull(logger, "logger null");
checkVersion(logger);