Packages

case class DefaultServerLog[F[_]](doLogWhenReceived: (String) => F[Unit], doLogWhenHandled: (String, Option[Throwable]) => F[Unit], doLogAllDecodeFailures: (String, Option[Throwable]) => F[Unit], doLogExceptions: (String, Throwable) => F[Unit], noLog: F[Unit], logWhenReceived: Boolean = false, logWhenHandled: Boolean = true, logAllDecodeFailures: Boolean = false, logLogicExceptions: Boolean = true, showEndpoint: (AnyEndpoint) => String = _.showShort, showRequest: (ServerRequest) => String = _.showShort, showResponse: (ServerResponse[_]) => String = _.showShort, includeTiming: Boolean = true, clock: Clock = Clock.systemUTC(), ignoreEndpoints: Set[AnyEndpoint] = Set.empty) extends ServerLog[F] with Product with Serializable

Linear Supertypes
Serializable, Product, Equals, ServerLog[F], AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. DefaultServerLog
  2. Serializable
  3. Product
  4. Equals
  5. ServerLog
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. Protected

Instance Constructors

  1. new DefaultServerLog(doLogWhenReceived: (String) => F[Unit], doLogWhenHandled: (String, Option[Throwable]) => F[Unit], doLogAllDecodeFailures: (String, Option[Throwable]) => F[Unit], doLogExceptions: (String, Throwable) => F[Unit], noLog: F[Unit], logWhenReceived: Boolean = false, logWhenHandled: Boolean = true, logAllDecodeFailures: Boolean = false, logLogicExceptions: Boolean = true, showEndpoint: (AnyEndpoint) => String = _.showShort, showRequest: (ServerRequest) => String = _.showShort, showResponse: (ServerResponse[_]) => String = _.showShort, includeTiming: Boolean = true, clock: Clock = Clock.systemUTC(), ignoreEndpoints: Set[AnyEndpoint] = Set.empty)

Type Members

  1. type TOKEN = Long

    The type of the per-request token that is generated when a request is started and passed to callbacks when the request is completed.

    The type of the per-request token that is generated when a request is started and passed to callbacks when the request is completed. E.g. Unit or a timestamp (Long).

    Definition Classes
    DefaultServerLogServerLog

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. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  5. def clock(c: Clock): DefaultServerLog[F]
  6. val clock: Clock
  7. def clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.CloneNotSupportedException]) @native() @HotSpotIntrinsicCandidate()
  8. def decodeFailureHandled(ctx: DecodeFailureContext, response: ServerResponse[_], token: TOKEN): F[Unit]

    Invoked when there's a decode failure for an input of the endpoint and the interpreter, or other interceptors, provided a response.

    Invoked when there's a decode failure for an input of the endpoint and the interpreter, or other interceptors, provided a response.

    Definition Classes
    DefaultServerLogServerLog
  9. def decodeFailureNotHandled(ctx: DecodeFailureContext, token: TOKEN): F[Unit]

    Invoked when there's a decode failure for an input of the endpoint and the interpreter, or other interceptors, haven't provided a response.

    Invoked when there's a decode failure for an input of the endpoint and the interpreter, or other interceptors, haven't provided a response.

    Definition Classes
    DefaultServerLogServerLog
  10. def doLogAllDecodeFailures(f: (String, Option[Throwable]) => F[Unit]): DefaultServerLog[F]
  11. val doLogAllDecodeFailures: (String, Option[Throwable]) => F[Unit]
  12. def doLogExceptions(f: (String, Throwable) => F[Unit]): DefaultServerLog[F]
  13. val doLogExceptions: (String, Throwable) => F[Unit]
  14. def doLogWhenHandled(f: (String, Option[Throwable]) => F[Unit]): DefaultServerLog[F]
  15. val doLogWhenHandled: (String, Option[Throwable]) => F[Unit]
  16. def doLogWhenReceived(f: (String) => F[Unit]): DefaultServerLog[F]
  17. val doLogWhenReceived: (String) => F[Unit]
  18. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  19. def exception(ctx: ExceptionContext[_, _], ex: Throwable, token: TOKEN): F[Unit]

    Invoked when an exception has been thrown when running the server logic or handling decode failures.

    Invoked when an exception has been thrown when running the server logic or handling decode failures.

    Definition Classes
    DefaultServerLogServerLog
  20. final def getClass(): Class[_ <: AnyRef]
    Definition Classes
    AnyRef → Any
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  21. def ignoreEndpoints(es: Seq[AnyEndpoint]): DefaultServerLog[F]

    Allows defining a list of endpoints which should not log requestHandled.

    Allows defining a list of endpoints which should not log requestHandled. Exceptions, decode failures and security failures will still be logged.

  22. val ignoreEndpoints: Set[AnyEndpoint]

    Allows defining a list of endpoints which should not log requestHandled.

    Allows defining a list of endpoints which should not log requestHandled. Exceptions, decode failures and security failures will still be logged.

    Definition Classes
    DefaultServerLogServerLog
  23. def includeTiming(doInclude: Boolean): DefaultServerLog[F]
  24. val includeTiming: Boolean
  25. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  26. def logAllDecodeFailures(doLog: Boolean): DefaultServerLog[F]
  27. val logAllDecodeFailures: Boolean
  28. def logLogicExceptions(doLog: Boolean): DefaultServerLog[F]
  29. val logLogicExceptions: Boolean
  30. def logWhenHandled(doLog: Boolean): DefaultServerLog[F]
  31. val logWhenHandled: Boolean
  32. val logWhenReceived: Boolean
  33. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  34. def noLog(f: F[Unit]): DefaultServerLog[F]
  35. val noLog: F[Unit]
  36. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  37. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @HotSpotIntrinsicCandidate()
  38. def productElementNames: Iterator[String]
    Definition Classes
    Product
  39. def requestHandled(ctx: DecodeSuccessContext[F, _, _, _], response: ServerResponse[_], token: TOKEN): F[Unit]

    Invoked when all inputs of the request have been decoded successfully and the endpoint handles the request by providing a response, with the given status code.

    Invoked when all inputs of the request have been decoded successfully and the endpoint handles the request by providing a response, with the given status code.

    Definition Classes
    DefaultServerLogServerLog
  40. def requestReceived(request: ServerRequest, token: TOKEN): F[Unit]

    Invoked when the request has been received.

    Invoked when the request has been received.

    Definition Classes
    DefaultServerLogServerLog
  41. def requestToken: TOKEN

    Invoked when the request has been received to obtain the per-request token, such as the starting timestamp.

    Invoked when the request has been received to obtain the per-request token, such as the starting timestamp.

    Definition Classes
    DefaultServerLogServerLog
  42. def securityFailureHandled(ctx: SecurityFailureContext[F, _], response: ServerResponse[_], token: TOKEN): F[Unit]

    Invoked when the security logic fails and returns an error.

    Invoked when the security logic fails and returns an error.

    Definition Classes
    DefaultServerLogServerLog
  43. def showEndpoint(s: (AnyEndpoint) => String): DefaultServerLog[F]
  44. val showEndpoint: (AnyEndpoint) => String
  45. def showRequest(s: (ServerRequest) => String): DefaultServerLog[F]
  46. val showRequest: (ServerRequest) => String
  47. def showResponse(s: (ServerResponse[_]) => String): DefaultServerLog[F]
  48. val showResponse: (ServerResponse[_]) => String
  49. final def synchronized[T0](arg0: => T0): T0
    Definition Classes
    AnyRef
  50. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])
  51. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException]) @native()
  52. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws(classOf[java.lang.InterruptedException])

Deprecated Value Members

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

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from ServerLog[F]

Inherited from AnyRef

Inherited from Any

Ungrouped