mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-22 02:33:59 +00:00
17 lines
453 B
Kotlin
17 lines
453 B
Kotlin
package app.revanced.api.configuration
|
|
|
|
import io.ktor.server.application.*
|
|
import io.ktor.server.plugins.callloging.*
|
|
import io.ktor.server.request.*
|
|
|
|
internal fun Application.configureLogging() {
|
|
install(CallLogging) {
|
|
format { call ->
|
|
val status = call.response.status()
|
|
val httpMethod = call.request.httpMethod.value
|
|
val uri = call.request.uri
|
|
"$status $httpMethod $uri"
|
|
}
|
|
}
|
|
}
|