title: How to log requests in ktor http client?
body: <p>I got something like this:</p>
  
  <pre><code>private val client = HttpClient {
      install(JsonFeature) {
          serializer = GsonSerializer()
      }
      install(ExpectSuccess)
  }
  </code></pre>
  
  <p>and make request like</p>
  
  <pre><code>  private fun HttpRequestBuilder.apiUrl(path: String, userId: String? = null) {
      header(HttpHeaders.CacheControl, "no-cache")
      url {
          takeFrom(endPoint)
          encodedPath = path
      }
  }
  </code></pre>
  
  <p>but I need to check request and response body, is there any way to do it? in console/in file?  </p>