final case class ErrorLoggingContext(logger: TracedLogger, properties: Map[String, String], traceContext: TraceContext) extends ErrorLoggingContextBase with Product with Serializable
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorLoggingContext
- Serializable
- Product
- Equals
- ErrorLoggingContextBase
- ContextualizedErrorLogger
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Instance Constructors
- new ErrorLoggingContext(logger: TracedLogger, properties: Map[String, String], traceContext: TraceContext)
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
- def correlationId: Option[String]
- Definition Classes
- ErrorLoggingContext → ContextualizedErrorLogger
- def debug(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContextBase
- def debug(message: String): Unit
- Definition Classes
- ErrorLoggingContextBase
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def error(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- def error(message: String): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native() @IntrinsicCandidate()
- def info(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- def info(message: String): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- def logError(err: BaseError, extra: Map[String, String]): Unit
Log the cause while adding the context into the MDC
Log the cause while adding the context into the MDC
We add the context twice to the MDC: first, every map item is added directly and then we add a second string version as "err-context". When we log to file, we add the err-context to the log output. When we log to JSON, we ignore the err-context field.
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- val logger: TracedLogger
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def noTracingLogger: Logger
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native() @IntrinsicCandidate()
- def productElementNames: Iterator[String]
- Definition Classes
- Product
- val properties: Map[String, String]
- Definition Classes
- ErrorLoggingContext → ContextualizedErrorLogger
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def trace(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContextBase
- def trace(message: String): Unit
- Definition Classes
- ErrorLoggingContextBase
- val traceContext: TraceContext
- def traceId: Option[String]
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- def warn(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger
- def warn(message: String): Unit
- Definition Classes
- ErrorLoggingContextBase → ContextualizedErrorLogger