trait ErrorLoggingContext extends BaseErrorLogger
Enriches a com.digitalasset.canton.tracing.TraceContext with a fixed logger and a set of properties. Use this class as an implicit parameter of methods inside helper classes whose class name shall not show up in the log line as part of the logger name. Instead, the logger name and properties are fixed when this object is created, which typically happens at a call site further up via NamedLogging.errorLoggingContext.
- See also
NamedLoggingContext for another variant where the logger name is not fixed
NamedLogging.errorLoggingContext converts
Linear Supertypes
Known Subclasses
Ordering
- Alphabetic
- By Inheritance
Inherited
- ErrorLoggingContext
- BaseErrorLogger
- AnyRef
- Any
- Hide All
- Show All
Visibility
- Public
- Protected
Abstract Value Members
- abstract def correlationId: Option[String]
- Definition Classes
- ErrorLoggingContext → BaseErrorLogger
- abstract def debug(message: String, throwable: Throwable): Unit
- abstract def debug(message: String): Unit
- abstract def error(message: String, throwable: Throwable): Unit
- Definition Classes
- ErrorLoggingContext → BaseErrorLogger
- abstract def error(message: String): Unit
- abstract def info(message: String, throwable: Throwable): Unit
- abstract def info(message: String): Unit
- abstract def logError(err: BaseError, extra: Map[String, String]): Unit
- Definition Classes
- BaseErrorLogger
- abstract def logger: TracedLogger
- abstract def noTracingLogger: Logger
- abstract def properties: Map[String, String]
- Definition Classes
- ErrorLoggingContext → BaseErrorLogger
- abstract def traceContext: TraceContext
- abstract def traceId: Option[String]
- Definition Classes
- ErrorLoggingContext → BaseErrorLogger
- abstract def warn(message: String, throwable: Throwable): Unit
- abstract def warn(message: String): Unit
- Definition Classes
- ErrorLoggingContext → BaseErrorLogger
- abstract def withContext[A](context: Map[String, String])(body: => A): A
Concrete 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]) @IntrinsicCandidate() @native()
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- 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])