Logging
note
This help topic is in development and will be updated in the future.
This feature adds multiplatform logging for HTTP calls.
Installation
val client = HttpClient() {
install(Logging) {
logger = Logger.DEFAULT
level = LogLevel.HEADERS
}
}
note
To use this feature, you need to include
io.ktor:ktor-client-logging-jvm
artifact on the JVM andktor-client-logging-native
on iOS.