Here you can find the source of set(String key, String value)
public static void set(String key, String value)
//package com.java2s; //License from project: Apache License import org.slf4j.MDC; import org.slf4j.spi.MDCAdapter; public class Main { private static MDCAdapter mdc = MDC.getMDCAdapter(); public static void set(String key, String value) { mdc.put(key, value);/*from w ww.java 2 s .c o m*/ } }