org.slf4j.ext

Class MDCStrLookup

public class MDCStrLookup extends 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

Method Summary
Stringlookup(String key)
Looks up up a value in the MDC.

Method Detail

lookup

public String lookup(String key)
Looks up up a value in the MDC.

Parameters: key the key to be looked up, may be null

Returns: the matching value, null if no match

Copyright © 2005-2010 QOS.ch. All Rights Reserved.