-
- All Implemented Interfaces:
-
okhttp3.Interceptor
public final class ValidicApiLogger implements Interceptor
Logging Api Interceptor based on OkHttpLoggingInterceptor. This class will use the ValidicLog class to log api requests. If logging is enabled, this will log by default to the console. What is logged is based on the ValidiLog's logLevel. Logging http headers requires at least DEBUG level verbosity and http body logging requires VERBOSE level. Headers that are considered sensitive can be hidden using redactHeader.
-
-
Constructor Summary
Constructors Constructor Description ValidicApiLogger()
-
Method Summary
Modifier and Type Method Description void
redactHeader(String name)
Response
intercept(Interceptor.Chain chain)
-
-
Method Detail
-
redactHeader
void redactHeader(String name)
-
intercept
Response intercept(Interceptor.Chain chain)
-
-
-
-