public static class LoggingEventListener.Factory extends java.lang.Object implements EventListener.Factory
Modifier and Type | Field and Description |
---|---|
private HttpLoggingInterceptor.Logger |
logger |
Constructor and Description |
---|
Factory() |
Factory(HttpLoggingInterceptor.Logger logger) |
Modifier and Type | Method and Description |
---|---|
EventListener |
create(Call call)
Creates an instance of the
EventListener for a particular Call . |
private final HttpLoggingInterceptor.Logger logger
public Factory()
public Factory(HttpLoggingInterceptor.Logger logger)
public EventListener create(Call call)
EventListener.Factory
EventListener
for a particular Call
. The returned
EventListener
instance will be used during the lifecycle of the call
.
This method is invoked after the call
is created. See
OkHttpClient.newCall(Request)
.
It is an error for implementations to issue any mutating operations on the
call
instance from this method.
create
in interface EventListener.Factory