public class DefaultLoggingInterceptor extends BaseLoggingInterceptor
| 限定符和类型 | 字段和说明 |
|---|---|
private okhttp3.logging.HttpLoggingInterceptor |
httpLoggingInterceptor |
private static org.slf4j.Logger |
logger |
logLevel, logStrategy| 构造器和说明 |
|---|
DefaultLoggingInterceptor(LogLevel logLevel,
LogStrategy logStrategy) |
private static final org.slf4j.Logger logger
private final okhttp3.logging.HttpLoggingInterceptor httpLoggingInterceptor
public DefaultLoggingInterceptor(LogLevel logLevel, LogStrategy logStrategy)
public okhttp3.Response intercept(okhttp3.Interceptor.Chain chain)
throws IOException
IOExceptionpublic okhttp3.logging.HttpLoggingInterceptor.Logger httpLoggingInterceptorLogger(LogLevel level)
Copyright © 2021. All rights reserved.