Skip to content

Commit 8c4ea8f

Browse files
committed
more comments
Signed-off-by: Ceki Gulcu <[email protected]>
1 parent 6b2921a commit 8c4ea8f

File tree

1 file changed

+3
-0
lines changed
  • slf4j-api/src/main/java/org/slf4j

1 file changed

+3
-0
lines changed

slf4j-api/src/main/java/org/slf4j/MDC.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,9 @@ private MDC() {
9191
static {
9292
SLF4JServiceProvider provider = LoggerFactory.getProvider();
9393
if (provider != null) {
94+
// obtain and attach the MDCAdapter from the provider
95+
// If you wish to change the adapter, Setting the MDC.mdcAdapter variable might not be enough as
96+
// the provider might perform additional assignments that you would need to replicate/adapt.
9497
mdcAdapter = provider.getMDCAdapter();
9598
} else {
9699
Reporter.error("Failed to find provider.");

0 commit comments

Comments
 (0)