setLevel okhttp LoggingInterceptor deprecated
According to the documentation "Moved to var. Replace setLevel(...) with level(...) to fix Java",
Replace setLevel(...)
with level(...)
will fix this issue
in Java:
HttpLoggingInterceptor logging = new HttpLoggingInterceptor();
logging.level(HttpLoggingInterceptor.Level.BODY);
in Kotlin
val logging = HttpLoggingInterceptor()
logging.level = HttpLoggingInterceptor.Level.BODY
Happy coding :)