setLevel

fun setLevel(level: HttpLoggingInterceptor.Level): <Error class: unknown class>

Sets the level and returns this.

This was deprecated in OkHttp 4.0 in favor of the level val. In OkHttp 4.3 it is un-deprecated because Java callers can't chain when assigning Kotlin vals. (The getter remains deprecated).