No more Retrofit, move to Ktor on Android — Logging and Interceptor
In the previous article here, we see how to implement Ktor on Android, now we focus on Logging and Interceptor.
Logging
First, add the logging dependencies in build.gradle
:
implementation "io.ktor:ktor-client-logging:$ktor_version"