← ZIO Logging docs

LogContext

zio.logging.LogContext
See theLogContext companion object
final case class LogContext

A LogContext stores context associated with logging operations.

Attributes

Companion
object
Source
LogContext.scala
Graph
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
Self type

Members list

Value members

Concrete methods

def ++(that: LogContext): LogContext

Merges this context with the specified context.

Merges this context with the specified context.

Attributes

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

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

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

Attributes

Source
LogContext.scala
def apply[A](logAnnotation: LogAnnotation[A]): Option[String]

Renders value for given annotation

Renders value for given annotation

Attributes

Source
LogContext.scala

Renders all log annotations in the context.

Renders all log annotations in the context.

Attributes

Source
LogContext.scala
def get[A](annotation: LogAnnotation[A]): Option[A]

Retrieves the specified annotation from the context.

Retrieves the specified annotation from the context.

Attributes

Source
LogContext.scala
def get(name: String): Option[String]

Retrieves the specified annotation by name from the context, return rendered value.

Retrieves the specified annotation by name from the context, return rendered value.

Attributes

Source
LogContext.scala

Merges this context with the specified context.

Merges this context with the specified context.

Attributes

Source
LogContext.scala

Inherited methods

An iterator over the names of all the elements of this product.

An iterator over the names of all the elements of this product.

Attributes

Inherited from:
Product
Source
Product.scala

An iterator over all the elements of this product.

An iterator over all the elements of this product.

Attributes

Returns

in the default implementation, an Iterator[Any]

Inherited from:
Product
Source
Product.scala