Package 

Class ValidicApiLogger

  • 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.

    • Method Summary

      Modifier and Type Method Description
      void redactHeader(String name)
      Response intercept(Interceptor.Chain chain)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ValidicApiLogger

        ValidicApiLogger()