diff --git a/slf4j-api/src/main/java/org/slf4j/MDC.java b/slf4j-api/src/main/java/org/slf4j/MDC.java index 6ba316453..6b0feded0 100644 --- a/slf4j-api/src/main/java/org/slf4j/MDC.java +++ b/slf4j-api/src/main/java/org/slf4j/MDC.java @@ -91,6 +91,9 @@ private MDC() { static { SLF4JServiceProvider provider = LoggerFactory.getProvider(); if (provider != null) { + // obtain and attach the MDCAdapter from the provider + // If you wish to change the adapter, Setting the MDC.mdcAdapter variable might not be enough as + // the provider might perform additional assignments that you would need to replicate/adapt. mdcAdapter = provider.getMDCAdapter(); } else { Reporter.error("Failed to find provider.");