debugdrawer-okhttp-logger / au.com.gridstone.debugdrawer / HttpLogger

HttpLogger

class HttpLogger

A wrapper around an OkHttp logging interceptor that pipes logs out to Timber. The log level is dictated by OkHttpLoggerModule in the debug drawer.

You must add interceptor to your client via OkHttpClient.Builder.addInterceptor in order for logs to be intercepted and delivered to Timber.

Constructors

<init>

HttpLogger(context: Context, prettyPrintJson: Boolean = true)

A wrapper around an OkHttp logging interceptor that pipes logs out to Timber. The log level is dictated by OkHttpLoggerModule in the debug drawer.

Properties

interceptor

val interceptor: Interceptor

An interceptor that pipes HTTP