code: private HttpLoggingInterceptor loggingInterceptor(int logLevel) {
  
          HttpLoggingInterceptor interceptor = new HttpLoggingInterceptor();
  
          switch (logLevel) {
              case LogLevelConst.DEBUG:
                  interceptor.setLevel(HttpLoggingInterceptor.Level.BODY);
                  break;
              default:
                  interceptor.setLevel(HttpLoggingInterceptor.Level.NONE);
                  break;
          }
  
          return interceptor;
      }
docs: Create and configure HTTP interceptor that will log the bodies of requests and responses.
  
  @param logLevel Log level threshold for logging service requests and responses.
  @return Interceptor to be used to configure the OkHTTP client.