Hello, Im using retrofit + koltin serializer and K...
# squarelibraries
e
Hello, Im using retrofit + koltin serializer and Kotlin Serialization Converter (Jake library). I want to see request and responses on the logcat. I added a convert into retrofit
Copy code
private val contentType =  "application/json".toMediaType()
private val json = Json {
    prettyPrint = true
    ignoreUnknownKeys = true
}

..

..addConverterFactory(json.asConverterFactory(contentType))
But i cannot see the logs on logcat screen. Any idea how to display it?
a
it looks like you are missing okhttp's logging interceptor https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor
e
Yes, I have that but guessing if there is any from serializer for that or the attribute prettyPrint its only works for object to string