Class Slf4jMDCAdapter

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

    public class Slf4jMDCAdapter
    extends Object
    implements org.slf4j.spi.MDCAdapter
    pax-logging specific MDCAdapter returned from SLF4JServiceProvider
    • Constructor Detail

      • Slf4jMDCAdapter

        public Slf4jMDCAdapter()
    • 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 contextMap)
        Specified by:
        setContextMap in interface org.slf4j.spi.MDCAdapter
      • pushByKey

        public void pushByKey​(String key,
                              String value)
        Specified by:
        pushByKey in interface org.slf4j.spi.MDCAdapter
      • popByKey

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

        public Deque<String> getCopyOfDequeByKey​(String key)
        Specified by:
        getCopyOfDequeByKey in interface org.slf4j.spi.MDCAdapter
      • clearDequeByKey

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