Skip to content

Commit

Permalink
more comments
Browse files Browse the repository at this point in the history
Signed-off-by: Ceki Gulcu <ceki@qos.ch>
  • Loading branch information
ceki committed Jan 23, 2024
1 parent 1d7785c commit f1fc5a1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions slf4j-api/src/main/java/org/slf4j/MDC.java
Expand Up @@ -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.");
Expand Down

0 comments on commit f1fc5a1

Please sign in to comment.