Package net.dreamlu.mica.http
Class HttpLoggingInterceptor
java.lang.Object
net.dreamlu.mica.http.HttpLoggingInterceptor
- All Implemented Interfaces:
okhttp3.Interceptor
An OkHttp interceptor which logs request and response information. Can be applied as an
application interceptor or as a network interceptor.
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 interceptor.
- Author:
- okhttpăL.cm
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface okhttp3.Interceptor
okhttp3.Interceptor.Chain, okhttp3.Interceptor.Companion -
Field Summary
Fields inherited from interface okhttp3.Interceptor
Companion -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionokhttp3.Responseintercept(okhttp3.Interceptor.Chain chain) Change the level at which this interceptor logs.
-
Constructor Details
-
HttpLoggingInterceptor
-
-
Method Details
-
setLevel
Change the level at which this interceptor logs.- Parameters:
level- log Level- Returns:
- HttpLoggingInterceptor
-
intercept
- Specified by:
interceptin interfaceokhttp3.Interceptor- Throws:
IOException
-