Class Slf4jMdcProvider

  • All Implemented Interfaces:
    MdcProvider

    public class Slf4jMdcProvider
    extends Object
    implements MdcProvider
    Provider for setting MDC values to the Slf4j MDC support. This class is loaded and used via SPI.
    • Constructor Detail

      • Slf4jMdcProvider

        public Slf4jMdcProvider()
    • Method Detail

      • put

        public void put​(String key,
                        String value)
        Description copied from interface: MdcProvider
        Set value to the specific logging framework MDC storage.
        Specified by:
        put in interface MdcProvider
        Parameters:
        key - entry key
        value - entry value
      • remove

        public void remove​(String key)
        Description copied from interface: MdcProvider
        Remove value bound to the key from the specific logging framework MDC storage.
        Specified by:
        remove in interface MdcProvider
        Parameters:
        key - entry to remove
      • clear

        public void clear()
        Description copied from interface: MdcProvider
        Clear all of the MDC values from the specific logging framework MDC storage.
        Specified by:
        clear in interface MdcProvider
      • get

        public String get​(String key)
        Description copied from interface: MdcProvider
        Return value bound to the specific key.
        Specified by:
        get in interface MdcProvider
        Parameters:
        key - entry key
        Returns:
        value bound to the key