LoggingEventListener

An OkHttp EventListener, which logs call events. Can be applied as an event listener factory.

The format of the logs created by this class should not be considered stable and may change slightly between releases. If you need a stable logging format, use your own event listener.

Types

Link copied to clipboard
object Companion
Link copied to clipboard
open class Factory @JvmOverloads constructor(logger: HttpLoggingInterceptor.Logger = HttpLoggingInterceptor.Logger.DEFAULT) : EventListener.Factory

Functions

Link copied to clipboard
open override fun cacheConditionalHit(call: Call, cachedResponse: Response)
Link copied to clipboard
open override fun cacheHit(call: Call, response: Response)
Link copied to clipboard
open override fun cacheMiss(call: Call)
Link copied to clipboard
open override fun callEnd(call: Call)
Link copied to clipboard
open override fun callFailed(call: Call, ioe: IOException)
Link copied to clipboard
open override fun callStart(call: Call)
Link copied to clipboard
open override fun canceled(call: Call)
Link copied to clipboard
open override fun connectEnd(call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?)
Link copied to clipboard
open override fun connectFailed(call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy, protocol: Protocol?, ioe: IOException)
Link copied to clipboard
open override fun connectionAcquired(call: Call, connection: Connection)
Link copied to clipboard
open override fun connectionReleased(call: Call, connection: Connection)
Link copied to clipboard
open override fun connectStart(call: Call, inetSocketAddress: InetSocketAddress, proxy: Proxy)
Link copied to clipboard
open override fun dnsEnd(call: Call, domainName: String, inetAddressList: List<InetAddress>)
Link copied to clipboard
open override fun dnsStart(call: Call, domainName: String)
Link copied to clipboard
open override fun proxySelectEnd(call: Call, url: HttpUrl, proxies: List<Proxy>)
Link copied to clipboard
open override fun proxySelectStart(call: Call, url: HttpUrl)
Link copied to clipboard
open override fun requestBodyEnd(call: Call, byteCount: Long)
Link copied to clipboard
open override fun requestBodyStart(call: Call)
Link copied to clipboard
open override fun requestFailed(call: Call, ioe: IOException)
Link copied to clipboard
open override fun requestHeadersEnd(call: Call, request: Request)
Link copied to clipboard
open override fun requestHeadersStart(call: Call)
Link copied to clipboard
open override fun responseBodyEnd(call: Call, byteCount: Long)
Link copied to clipboard
open override fun responseBodyStart(call: Call)
Link copied to clipboard
open override fun responseFailed(call: Call, ioe: IOException)
Link copied to clipboard
open override fun responseHeadersEnd(call: Call, response: Response)
Link copied to clipboard
open override fun responseHeadersStart(call: Call)
Link copied to clipboard
open override fun satisfactionFailure(call: Call, response: Response)
Link copied to clipboard
open override fun secureConnectEnd(call: Call, handshake: Handshake?)
Link copied to clipboard
open override fun secureConnectStart(call: Call)