Interface MdcProvider

  • All Known Implementing Classes:
    JulMdcProvider, Slf4jMdcProvider

    public interface MdcProvider
    Provider which is used to propagate values passed from HelidonMdc to the corresponding logging framework MDC storage.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void clear()
      Clear all of the MDC values from the specific logging framework MDC storage.
      String get​(String key)
      Return value bound to the specific key.
      void put​(String key, String value)
      Set value to the specific logging framework MDC storage.
      void remove​(String key)
      Remove value bound to the key from the specific logging framework MDC storage.
    • Method Detail

      • put

        void put​(String key,
                 String value)
        Set value to the specific logging framework MDC storage.
        Parameters:
        key - entry key
        value - entry value
      • remove

        void remove​(String key)
        Remove value bound to the key from the specific logging framework MDC storage.
        Parameters:
        key - entry to remove
      • clear

        void clear()
        Clear all of the MDC values from the specific logging framework MDC storage.
      • get

        String get​(String key)
        Return value bound to the specific key.
        Parameters:
        key - entry key
        Returns:
        value bound to the key