Class JulMdcProvider

  • All Implemented Interfaces:
    MdcProvider

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

      • JulMdcProvider

        public JulMdcProvider()
    • 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