setLevel(okhttp3.logging.HttpLoggingInterceptor.Level)' is deprecated
what should replace with setLevel? to remove the deprecated issue
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 :)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With