MDC

scribe.mdc.MDC
See theMDC companion trait
object MDC

Attributes

Companion
trait
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
MDC.type

Members list

Value members

Concrete methods

def apply[Return](f: MDC => Return): Return
def clear(): Unit
def contains(key: String): Boolean
def context[Return](values: (String, MDCValue)*)(f: => Return): Return
def contextualize[Return](mdc: MDC)(f: => Return): Return

Sets the instance for the current context for the duration of the function f.

Sets the instance for the current context for the duration of the function f.

Attributes

def elapsed(key: String, timeFunction: () => Long): Unit
def get(key: String): Option[Any]
def getOrElse(key: String, default: => Any): Any
def map: Map[String, () => Any]
def remove(key: String): Option[Any]
def set(mdc: MDC): Unit

Sets the instance for the current context

Sets the instance for the current context

Attributes

def set(key: String, value: Option[Any]): Option[Any]
def update(key: String, value: => Any): Option[Any]

Concrete fields

var creator: Option[MDC] => MDC

The function to create MDC instances. Receives the parent and creates a new MDC instance. By default, this will use MDCMap, but this can be replaced to provide a different implementation.

The function to create MDC instances. Receives the parent and creates a new MDC instance. By default, this will use MDCMap, but this can be replaced to provide a different implementation.

Attributes

lazy val global: MDC

Global MDC instance. By default, all instances of MDC inherit from this.

Global MDC instance. By default, all instances of MDC inherit from this.

Attributes

The MDCManager responsible for retrieving an MDC instance for the context. By default this uses MDCThreadLocal but can replaced with something more advanced.

The MDCManager responsible for retrieving an MDC instance for the context. By default this uses MDCThreadLocal but can replaced with something more advanced.

Attributes

Implicits

Implicits

implicit def instance: MDC

Convenience implicit to get the current instance of MDC from the manager

Convenience implicit to get the current instance of MDC from the manager

Attributes