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 6b2921a commit 8c4ea8f
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
Original file line number Diff line number Diff line change
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 8c4ea8f

Please sign in to comment.