public class HttpLogger extends java.lang.Object implements HttpLoggingInterceptor.Logger
构造器和说明 |
---|
HttpLogger(boolean debuggable,
java.lang.String tag) |
限定符和类型 | 方法和说明 |
---|---|
void |
logException(java.lang.Exception exception,
java.lang.String message) |
void |
logRequest(java.lang.String message) |
void |
logResponse(okhttp3.Response response,
java.lang.String message) |
void |
setDebug(boolean debuggable) |
void |
setTag(java.lang.String tag) |
public void setDebug(boolean debuggable)
public void setTag(java.lang.String tag)
public void logRequest(java.lang.String message)
logRequest
在接口中 HttpLoggingInterceptor.Logger
public void logResponse(okhttp3.Response response, java.lang.String message)
logResponse
在接口中 HttpLoggingInterceptor.Logger
public void logException(java.lang.Exception exception, java.lang.String message)
logException
在接口中 HttpLoggingInterceptor.Logger