LoggingInterceptor

fun LoggingInterceptor(log: (String) -> Unit = { println(it) })


fun LoggingInterceptor(level: LoggingInterceptor.Level, log: (String) -> Unit = { println(it) })

Parameters

level

the level of logging. Caution: when uploading files, setting this to Level.BODY will cause the files to be fully loaded into memory, which may cause OutOfMemoryErrors.