MarkerContext

play.api.MarkerContext
See theMarkerContext companion object

A MarkerContext trait, to provide easy access to org.slf4j.Marker in Logger API. This is usually accessed with a marker through an implicit conversion from a Marker.

 implicit val markerContext: MarkerContext = org.slf4j.MarkerFactory.getMarker("EXAMPLEMARKER")
 log.error("This message will be logged with the EXAMPLEMARKER marker")

Attributes

Companion
object
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes

Members list

Value members

Abstract methods

def marker: Option[Marker]

Attributes

Returns

an SLF4J marker, if one has been defined.