Packages

c

sttp.tapir.server

LogRequestHandling

case class LogRequestHandling[T](doLogWhenHandled: (String, Option[Throwable]) ⇒ T, doLogAllDecodeFailures: (String, Option[Throwable]) ⇒ T, doLogLogicExceptions: (String, Throwable) ⇒ T, noLog: T, logWhenHandled: Boolean = true, logAllDecodeFailures: Boolean = false, logLogicExceptions: Boolean = true) extends Product with Serializable

Callbacks to log how a request was handled.

T

Interpreter-specific value representing the log action.

Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. LogRequestHandling
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. AnyRef
  7. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new LogRequestHandling(doLogWhenHandled: (String, Option[Throwable]) ⇒ T, doLogAllDecodeFailures: (String, Option[Throwable]) ⇒ T, doLogLogicExceptions: (String, Throwable) ⇒ T, noLog: T, logWhenHandled: Boolean = true, logAllDecodeFailures: Boolean = false, logLogicExceptions: Boolean = true)

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 clone(): AnyRef
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()
  6. def decodeFailureHandled(e: Endpoint[_, _, _, _], ctx: DecodeFailureContext, responseValue: Any): T

    Invoked when there's a decode failure for an input of the endpoint and the DecodeFailureHandler for the given failure provides a response.

  7. def decodeFailureNotHandled(e: Endpoint[_, _, _, _], ctx: DecodeFailureContext): T

    Invoked when there's a decode failure for an input of the endpoint and the DecodeFailureHandler for the given failure returns a no-match.

  8. val doLogAllDecodeFailures: (String, Option[Throwable]) ⇒ T
  9. val doLogLogicExceptions: (String, Throwable) ⇒ T
  10. val doLogWhenHandled: (String, Option[Throwable]) ⇒ T
  11. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  12. def finalize(): Unit
    Attributes
    protected[lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  14. final def isInstanceOf[T0]: Boolean
    Definition Classes
    Any
  15. val logAllDecodeFailures: Boolean
  16. val logLogicExceptions: Boolean
  17. val logWhenHandled: Boolean
  18. def logicException(e: Endpoint[_, _, _, _], ex: Throwable): T

    Invoked when an exception has been thrown when running the server logic.

  19. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  20. val noLog: T
  21. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  22. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  23. def requestHandled(e: Endpoint[_, _, _, _], statusCode: Int): T

    Invoked when all inputs of the request have been decoded successfully and the endpoint handles the request by providing a response (which might be an error or success).

  24. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  25. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  26. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  27. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... ) @native()

Inherited from Serializable

Inherited from Serializable

Inherited from Product

Inherited from Equals

Inherited from AnyRef

Inherited from Any

Ungrouped