Package

com.twitter.inject

logging

Permalink

package logging

Visibility
  1. Public
  2. All

Type Members

  1. final class FinagleMDCAdapter extends MDCAdapter

    Permalink

    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.

    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

    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.

    ,

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

    See also

    com.twitter.finagle.context.LocalContext

    com.twitter.finagle.context.Contexts.local

    com.twitter.inject.logging.MDCInitializer

Value Members

  1. object MDCInitializer extends Logging

    Permalink

    Local contexts helpers for the framework SLF4J MDC integration FinagleMDCAdapter.

    Local contexts helpers for the framework SLF4J MDC integration FinagleMDCAdapter. The backing of the adapter is stored as a com.twitter.finagle.context.LocalContext.

    Local contexts have lifetimes bound by Finagle server requests. They are local to the process, that is they are not propagated to other services.

    See also

    com.twitter.finagle.context.LocalContext

    com.twitter.inject.logging.FinagleMDCAdapter

    Mapped Diagnostic Context

Ungrouped