public class LoggingInterceptor extends Object implements okhttp3.Interceptor
| 限定符和类型 | 类和说明 |
|---|---|
private static class |
LoggingInterceptor.BufferingLogger |
| 限定符和类型 | 字段和说明 |
|---|---|
protected GlobalLogProperty |
globalLogProperty |
| 构造器和说明 |
|---|
LoggingInterceptor(GlobalLogProperty globalLogProperty) |
| 限定符和类型 | 方法和说明 |
|---|---|
protected Logging |
findLogging(okhttp3.Interceptor.Chain chain) |
okhttp3.Response |
intercept(okhttp3.Interceptor.Chain chain) |
protected okhttp3.logging.HttpLoggingInterceptor.Logger |
matchLogger(String logName,
LogLevel level) |
protected boolean |
needLog(Logging logging) |
protected final GlobalLogProperty globalLogProperty
public LoggingInterceptor(GlobalLogProperty globalLogProperty)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
intercept 在接口中 okhttp3.InterceptorIOExceptionprotected Logging findLogging(okhttp3.Interceptor.Chain chain)
protected boolean needLog(Logging logging)
Copyright © 2024. All rights reserved.