public final class LoggingEventListener extends EventListener
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.
Modifier and Type | Class and Description |
---|---|
static class |
LoggingEventListener.Factory |
NONE
Modifier and Type | Method and Description |
---|---|
void |
callEnd(Call call) |
void |
callFailed(Call call,
java.io.IOException ioe) |
void |
callStart(Call call) |
void |
connectEnd(Call call,
java.net.InetSocketAddress inetSocketAddress,
java.net.Proxy proxy,
Protocol protocol) |
void |
connectFailed(Call call,
java.net.InetSocketAddress inetSocketAddress,
java.net.Proxy proxy,
Protocol protocol,
java.io.IOException ioe) |
void |
connectionAcquired(Call call,
Connection connection) |
void |
connectionReleased(Call call,
Connection connection) |
void |
connectStart(Call call,
java.net.InetSocketAddress inetSocketAddress,
java.net.Proxy proxy) |
void |
dnsEnd(Call call,
java.lang.String domainName,
java.util.List<java.net.InetAddress> inetAddressList) |
void |
dnsStart(Call call,
java.lang.String domainName) |
void |
requestBodyEnd(Call call,
long byteCount) |
void |
requestBodyStart(Call call) |
void |
requestFailed(Call call,
java.io.IOException ioe) |
void |
requestHeadersEnd(Call call,
Request request) |
void |
requestHeadersStart(Call call) |
void |
responseBodyEnd(Call call,
long byteCount) |
void |
responseBodyStart(Call call) |
void |
responseFailed(Call call,
java.io.IOException ioe) |
void |
responseHeadersEnd(Call call,
Response response) |
void |
responseHeadersStart(Call call) |
void |
secureConnectEnd(Call call,
Handshake handshake) |
void |
secureConnectStart(Call call) |
public void callStart(Call call)
callStart
in class EventListener
public void dnsStart(Call call, java.lang.String domainName)
dnsStart
in class EventListener
public void dnsEnd(Call call, java.lang.String domainName, java.util.List<java.net.InetAddress> inetAddressList)
dnsEnd
in class EventListener
public void connectStart(Call call, java.net.InetSocketAddress inetSocketAddress, java.net.Proxy proxy)
connectStart
in class EventListener
public void secureConnectStart(Call call)
secureConnectStart
in class EventListener
public void secureConnectEnd(Call call, @Nullable Handshake handshake)
secureConnectEnd
in class EventListener
public void connectEnd(Call call, java.net.InetSocketAddress inetSocketAddress, java.net.Proxy proxy, @Nullable Protocol protocol)
connectEnd
in class EventListener
public void connectFailed(Call call, java.net.InetSocketAddress inetSocketAddress, java.net.Proxy proxy, @Nullable Protocol protocol, java.io.IOException ioe)
connectFailed
in class EventListener
public void connectionAcquired(Call call, Connection connection)
connectionAcquired
in class EventListener
public void connectionReleased(Call call, Connection connection)
connectionReleased
in class EventListener
public void requestHeadersStart(Call call)
requestHeadersStart
in class EventListener
public void requestHeadersEnd(Call call, Request request)
requestHeadersEnd
in class EventListener
public void requestBodyStart(Call call)
requestBodyStart
in class EventListener
public void requestBodyEnd(Call call, long byteCount)
requestBodyEnd
in class EventListener
public void requestFailed(Call call, java.io.IOException ioe)
requestFailed
in class EventListener
public void responseHeadersStart(Call call)
responseHeadersStart
in class EventListener
public void responseHeadersEnd(Call call, Response response)
responseHeadersEnd
in class EventListener
public void responseBodyStart(Call call)
responseBodyStart
in class EventListener
public void responseBodyEnd(Call call, long byteCount)
responseBodyEnd
in class EventListener
public void responseFailed(Call call, java.io.IOException ioe)
responseFailed
in class EventListener
public void callEnd(Call call)
callEnd
in class EventListener
public void callFailed(Call call, java.io.IOException ioe)
callFailed
in class EventListener
Copyright © 2019. All Rights Reserved.