LoggingCallback

class LoggingCallback(level: System.Logger.Level = Level.INFO, logger: Logger = Logger(LoggingCallback::class), includeHeaders: Boolean = false, includeBody: Boolean = true) : Function1<HttpContext, HttpContext>

Callback that logs server requests and responses.

Constructors

Link copied to clipboard
constructor(level: System.Logger.Level = Level.INFO, logger: Logger = Logger(LoggingCallback::class), includeHeaders: Boolean = false, includeBody: Boolean = true)

Functions

Link copied to clipboard
open operator override fun invoke(context: HttpContext): HttpContext