Packages

object LoggingContext

Linear Supertypes
AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LoggingContext
  2. AnyRef
  3. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Value Members

  1. final def !=(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  2. final def ##: Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. val ForTesting: LoggingContext
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @IntrinsicCandidate()
  7. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  8. def equals(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef → Any
  9. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  10. def hashCode(): Int
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @IntrinsicCandidate()
  11. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  12. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def newLoggingContext[A](f: (LoggingContext) => A): A
  14. def newLoggingContextWith[A](entry: LoggingEntry, entries: LoggingEntry*)(f: (LoggingContext) => A): A
  15. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  16. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @IntrinsicCandidate()
  17. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  18. def toString(): String
    Definition Classes
    AnyRef → Any
  19. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  20. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  21. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  22. def withEnrichedLoggingContext[A](entry: LoggingEntry, entries: LoggingEntry*)(f: (LoggingContext) => A)(implicit loggingContext: LoggingContext): A

    ## Principles to follow when enriching the logging context

    ## Principles to follow when enriching the logging context

    ### Don't add values coming from a scope outside of the current method

    If a method receives a value as a parameter, it should trust that, if it was relevant, the caller already added this value to the context. Add values to the context as upstream as possible in the call chain. This ensures to not add duplicates, possibly using slightly different names to track the same value. The context was implemented to ensure that values did not have to be passed down the entire call stack to be logged at relevant points.

    ### Don't dump string representations of complex objects

    The purpose of the context is to be consumed by structured logging frameworks. Dumping the string representation of an object, like a Scala case class instance, means embedding some form of string formatting in another (likely to be JSON). This can be difficult to manage and parse, so stick to simple values (strings, numbers, dates, etc.).

  23. def withEnrichedLoggingContextFrom[A](entries: LoggingEntries)(f: (LoggingContext) => A)(implicit loggingContext: LoggingContext): A

    ## Principles to follow when enriching the logging context

    ## Principles to follow when enriching the logging context

    ### Don't add values coming from a scope outside of the current method

    If a method receives a value as a parameter, it should trust that, if it was relevant, the caller already added this value to the context. Add values to the context as upstream as possible in the call chain. This ensures to not add duplicates, possibly using slightly different names to track the same value. The context was implemented to ensure that values did not have to be passed down the entire call stack to be logged at relevant points.

    ### Don't dump string representations of complex objects

    The purpose of the context is to be consumed by structured logging frameworks. Dumping the string representation of an object, like a Scala case class instance, means embedding some form of string formatting in another (likely to be JSON). This can be difficult to manage and parse, so stick to simple values (strings, numbers, dates, etc.).

Deprecated Value Members

  1. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.Throwable]) @Deprecated
    Deprecated

Inherited from AnyRef

Inherited from Any

Ungrouped