okhttp-logging-interceptor / okhttp3.logging / LoggingEventListener

LoggingEventListener

class LoggingEventListener : EventListener

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

Name Summary
Factory class Factory : Factory

Functions

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