Packages

c

com.twitter.inject.logging

FinagleMDCAdapter

final class FinagleMDCAdapter extends MDCAdapter

Implementation of the org.slf4j.spi.MDCAdapter which stores the backing map as a com.twitter.finagle.context.LocalContext via a com.twitter.finagle.context.Contexts.local.

Note

Users are not expected to interact with this MDCAdapter directly. Users should use the framework MDC API, via com.twitter.inject.logging.MDCInitializer.

,

if access to the org.slf4j.MDC is done without first calling com.twitter.inject.logging.MDCInitializer.let these operations are all effectively no-ops.

See also

com.twitter.inject.logging.MDCInitializer

com.twitter.finagle.context.Contexts.local

com.twitter.finagle.context.LocalContext

Linear Supertypes
MDCAdapter, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. FinagleMDCAdapter
  2. MDCAdapter
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new FinagleMDCAdapter()

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clear(): Unit

    Clear all entries in the MDC.

    Clear all entries in the MDC.

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#clear

  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable])
  10. def get(key: String): String

    Get the context identified by the key parameter.

    Get the context identified by the key parameter. The key parameter cannot be null.

    returns

    the string value identified by the key parameter.

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#get

  11. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  12. def getCopyOfContextMap(): Map[String, String]

    Return a copy of the current thread's context map, with keys and values of type String.

    Return a copy of the current thread's context map, with keys and values of type String. Returned value may be null.

    returns

    A copy of the current thread's context map. May be null.

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#getCopyOfContextMap

  13. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  16. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  17. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  18. def put(key: String, value: String): Unit

    Put a context value (the val parameter) as identified with the key parameter into the current thread's context map.

    Put a context value (the val parameter) as identified with the key parameter into the current thread's context map. The key parameter cannot be null. The val parameter can be null only if the underlying implementation supports it.

    If the current thread does not have a context map it is created as a side effect of this call.

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#put

  19. def remove(key: String): Unit

    Remove the the context identified by the key parameter.

    Remove the the context identified by the key parameter. The key parameter cannot be null. This method does nothing if there is no previous value associated with key.

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#remove

  20. def setContextMap(contextMap: Map[String, String]): Unit

    Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter.

    Set the current thread's context map by first clearing any existing map and then copying the map passed as parameter. The context map parameter must only contain keys and values of type String.

    contextMap

    must contain only keys and values of type String

    Definition Classes
    FinagleMDCAdapter → MDCAdapter
    See also

    org.slf4j.spi.MDCAdapter#setContextMap

  21. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  22. def toString(): String
    Definition Classes
    AnyRef → Any
  23. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  24. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  25. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()

Inherited from MDCAdapter

Inherited from AnyRef

Inherited from Any

Ungrouped