LogContext

final case class LogContext

A LogContext stores context associated with logging operations.

Companion
object
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any

Value members

Methods

def ++(that: LogContext): LogContext

Merges this context with the specified context.

def annotate[A](annotation: LogAnnotation[A], newA: A): LogContext

Annotates the context with the specified annotation and value, returning the new context.

def apply[A](logAnnotation: LogAnnotation[A]): String

Renders value for given annotation

def get[A](annotation: LogAnnotation[A]): A

Retrieves the specified annotation from the context.

Merges this context with the specified context.

def renderContext: Map[String, String]

Renders all log annotations in current context.

Returns

Map from annotation name to rendered value

Inherited methods

def productElementNames: Iterator[String]
Inherited from
Product
def productIterator: Iterator[Any]
Inherited from
Product