- java.lang.Object
-
- org.tentackle.log.AbstractMappedDiagnosticContext
-
- org.tentackle.log.slf4j.SLF4JMappedDiagnosticContext
-
- All Implemented Interfaces:
MappedDiagnosticContext
@Service(SLF4JMappedDiagnosticContext.class) public class SLF4JMappedDiagnosticContext extends AbstractMappedDiagnosticContext
The SLF4J mdc implementation.- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description SLF4JMappedDiagnosticContext()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclear()Stringget(String key)Map<String,String>getContext()static SLF4JMappedDiagnosticContextgetInstance()The singleton.voidput(String key, String val)voidremove(String key)-
Methods inherited from class org.tentackle.log.AbstractMappedDiagnosticContext
getKeys, matchesPattern, toString
-
-
-
-
Method Detail
-
getInstance
public static SLF4JMappedDiagnosticContext getInstance()
The singleton.- Returns:
- the singleton
-
remove
public void remove(String key)
-
clear
public void clear()
-
getContext
public Map<String,String> getContext()
- Specified by:
getContextin classAbstractMappedDiagnosticContext
-
-