Java slf4j Logger set(String key, String value)

Here you can find the source of set(String key, String value)

Description

set

License

Apache License

Declaration

public static void set(String key, String value) 

Method Source Code

//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*/
    }
}

Related

  1. profilerTrigger2(Logger log, String msg)
  2. putMDCs(String clientId, String subjectId)
  3. request(String infoMessage)
  4. restoreContext(Map mdcContextMap)
  5. rosettaShell(ArrayList a)
  6. setbizSeq(String bizSeq)
  7. setClusterShard(String cluster, String shard)
  8. setContext(String value)
  9. setDefaultLogger()