MDCStrLookup (SLF4J 1.7.4 API)
Date: 2013-03-18

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## 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
`MDCStrLookup()`

Method Summary
`String` | `lookup(String key)` Looks up up a value in the MDC.

Methods inherited from class org.apache.commons.lang.text.StrLookup
`mapLookup, noneLookup, systemPropertiesLookup`

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Constructor Detail

### MDCStrLookup

    public MDCStrLookup()

Method Detail

### lookup

    public String lookup(String key)

  Looks up up a value in the MDC.

  Specified by:
    `lookup` in class `org.apache.commons.lang.text.StrLookup`
  Parameters:
    `key` - the key to be looked up, may be null
  Returns:
    the matching value, null if no match

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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