org.apache.logging.slf4j

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

Copyright © 1999-2019 The Apache Software Foundation. All Rights Reserved.
Apache Logging, Apache Log4j, Log4j, Apache, the Apache feather logo, the Apache Logging project logo, and the Apache Log4j logo are trademarks of The Apache Software Foundation.