Class SLF4JMappedDiagnosticContext

  • All Implemented Interfaces:
    org.tentackle.log.MappedDiagnosticContext

    @Service(SLF4JMappedDiagnosticContext.class)
    public class SLF4JMappedDiagnosticContext
    extends org.tentackle.log.AbstractMappedDiagnosticContext
    The SLF4J mdc implementation.
    Author:
    harald
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()  
      java.lang.String get​(java.lang.String key)  
      java.util.Map<java.lang.String,​java.lang.String> getContext()  
      static SLF4JMappedDiagnosticContext getInstance()
      The singleton.
      void put​(java.lang.String key, java.lang.String val)  
      void remove​(java.lang.String key)  
      • Methods inherited from class org.tentackle.log.AbstractMappedDiagnosticContext

        getKeys, matchesPattern, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • SLF4JMappedDiagnosticContext

        public SLF4JMappedDiagnosticContext()
    • Method Detail

      • put

        public void put​(java.lang.String key,
                        java.lang.String val)
      • get

        public java.lang.String get​(java.lang.String key)
      • remove

        public void remove​(java.lang.String key)
      • clear

        public void clear()
      • getContext

        public java.util.Map<java.lang.String,​java.lang.String> getContext()
        Specified by:
        getContext in class org.tentackle.log.AbstractMappedDiagnosticContext