object LogAnnotation extends Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- LogAnnotation
- Serializable
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Value Members
- val Cause: LogAnnotation[Option[Cause[Any]]]
The
Cause
annotation keeps track of a Cause. - val CorrelationId: LogAnnotation[Option[UUID]]
The
CorrelationId
annotation keeps track of correlation id. - val Level: LogAnnotation[LogLevel]
The
Level
annotation keeps track of log levels. - val Name: LogAnnotation[List[String]]
The
Name
annotation keeps track of logger names. - val Throwable: LogAnnotation[Option[Throwable]]
The
Throwable
annotation keeps track of a throwable. - val Timestamp: LogAnnotation[OffsetDateTime]
Log timestamp
- def optional[A](name: String, render: (A) => String)(implicit arg0: ClassTag[A]): LogAnnotation[Option[A]]
Creates a LogAnnotation that is represented as an optional value and initialized with
None
.Creates a LogAnnotation that is represented as an optional value and initialized with
None
. If a value for the annotation is present, it will be rendered using the provided function. When absent, it will be rendered as an empty string.- Annotations
- @silent("evidence")