code: @Override public Response intercept(Chain chain) throws IOException {
      Request request = chain.request();
  
      long t1 = System.nanoTime();
      logger.log(String.format("Sending request %s on %s%n%s",
          request.url(), chain.connection(), request.headers()));
  
      Response response = chain.proceed(request);
  
      long t2 = System.nanoTime();
      logger.log(String.format("Received response for %s in %.1fms%n%s",
          response.request().url(), (t2 - t1) / NANOS_PER_SECOND, response.headers()));
  
      return response;
    }
docs: Log the incomming request.
  <p>
  Once a request gets triggered in okhttp3, this interceptor gets called.
  
  @param chain the chain of interceptor, provided by the okhttp3.
  @return the response of the chain.
  @throws IOException in case of failure down the line.