Class Log4jMDCAdapter

  • All Implemented Interfaces:
    org.slf4j.spi.MDCAdapter

    public class Log4jMDCAdapter
    extends Object
    implements org.slf4j.spi.MDCAdapter
    • Constructor Detail

      • Log4jMDCAdapter

        public Log4jMDCAdapter()
    • Method Detail

      • put

        public void put​(String key,
                        String val)
        Specified by:
        put in interface org.slf4j.spi.MDCAdapter
      • get

        public String get​(String key)
        Specified by:
        get in interface org.slf4j.spi.MDCAdapter
      • remove

        public void remove​(String key)
        Specified by:
        remove in interface org.slf4j.spi.MDCAdapter
      • clear

        public void clear()
        Specified by:
        clear in interface org.slf4j.spi.MDCAdapter
      • getCopyOfContextMap

        public Map<String,​String> getCopyOfContextMap()
        Specified by:
        getCopyOfContextMap in interface org.slf4j.spi.MDCAdapter
      • setContextMap

        public void setContextMap​(Map map)
        Specified by:
        setContextMap in interface org.slf4j.spi.MDCAdapter