object MarkerContext extends LowPriorityMarkerContextImplicits
- Source
- Logger.scala
- Alphabetic
- By Inheritance
- MarkerContext
- LowPriorityMarkerContextImplicits
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
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
- implicit val NoMarker: MarkerContext
A MarkerContext that returns None.
A MarkerContext that returns None. This is used as the "default" marker context if no implicit MarkerContext is found in local scope (meaning there is nothing defined through import or "implicit val").
- Definition Classes
- LowPriorityMarkerContextImplicits
- def apply(marker: Marker): MarkerContext
Provides an instance of a MarkerContext from a Marker.
Provides an instance of a MarkerContext from a Marker. The explicit form is useful when you want to explicitly tag a log message with a particular Marker and you already have a Marker in implicit scope.
implicit val implicitContext: MarkerContext = ... val explicitContext: MarkerContext = MarkerContext(MarkerFactory.getMarker("EXPLICITMARKER")) // do not use the implicit MarkerContext log.error("This message is logged with EXPLICITMARKER")(explicitContext)
- marker
the marker to wrap in DefaultMarkerContext
- returns
an instance of DefaultMarkerContext.
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @HotSpotIntrinsicCandidate() @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
- @HotSpotIntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- implicit def markerToMarkerContext(marker: Marker): MarkerContext
Enables conversion from a marker to a MarkerContext:
Enables conversion from a marker to a MarkerContext:
val mc: MarkerContext = MarkerFactory.getMarker("SOMEMARKER")
- marker
the SLF4J marker to convert
- returns
the result of
MarkerContext.apply(marker)
- Definition Classes
- LowPriorityMarkerContextImplicits
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @HotSpotIntrinsicCandidate() @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])
Deprecated Value Members
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable]) @Deprecated
- Deprecated
(Since version 9)