functionaldude
05/10/2017, 10:08 AMoverride fun install(pipeline: Application, configure: Unit.() -> Unit) {
val loggingPhase = PipelinePhase("Logging")
pipeline.phases.insertBefore(ApplicationCallPipeline.Infrastructure, loggingPhase)
pipeline.intercept(loggingPhase) { call ->
try {
proceed()
} finally {
logCallFinished(call)
}
}
}
Does Ktor supports the needed kind of logging/intercepting?