Logging Retrofit requests can be done with OkHttp Logging Interceptor. It logs all HTTP requests and response data.

implementation("com.squareup.okhttp3:logging-interceptor:4.2.0")
val logging = HttpLoggingInterceptor()
logging.apply { logging.level = HttpLoggingInterceptor.Level.BODY }
val client = OkHttpClient.Builder()
  .addInterceptor(logging)
  .build()
val retrofit = Retrofit.Builder()
  .client(client)
  .baseUrl("https://owner-api.teslamotors.com/")
  .build()

Available log levels are:

NONE – No logging
BASIC – Logs request and response lines
HEADERS – Logs request and response lines and their respective headers
BODY – Logs request and response lines and their respective headers and bodies

Be aware that HEADERS and BODY levels may leak sensitive information because they may include authentication tokens, passwords, etc. You can however redact such headers with redactHeader().

logging.redactHeader("Authorization");
logging.redactHeader("Cookie");