Package org.slf4j.ext
Class MDCStrLookup
- java.lang.Object
-
- org.apache.commons.lang.text.StrLookup
-
- org.slf4j.ext.MDCStrLookup
-
public class MDCStrLookup extends org.apache.commons.lang.text.StrLookup
This class can be used with the Commons Lang StrSubstitutor to replace tokens that occur in Strings with their values in the MDC.- Author:
- Ralph Goers
-
-
Constructor Summary
Constructors Constructor Description MDCStrLookup()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
lookup(String key)
Looks up up a value in the MDC.
-