Registry / http-client / logging-interceptor

logging-interceptor

JSON →
library5.3.2javamavenunverified

OkHttp Logging Interceptor logs HTTP request and response details for debugging and monitoring network traffic.

<dependency> <groupId>com.squareup.okhttp3</groupId> <artifactId>logging-interceptor</artifactId> <version>5.3.2</version> </dependency>
INSTALL
IMPORT
SIG · LOGGING-INTERCEPTO
L
logging-interceptor
http-clientjavav5.3.2
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpLoggingInterceptor
okhttp3.logging.HttpLoggingInterceptor

Creates an OkHttp client with request/response logging.

import okhttp3.OkHttpClient; import okhttp3.logging.HttpLoggingInterceptor; HttpLoggingInterceptor logging = new HttpLoggingInterceptor(); logging.setLevel(HttpLoggingInterceptor.Level.BODY); OkHttpClient client = new OkHttpClient.Builder() .addInterceptor(logging) .build();
Debug
Known issues
gotchaLogging sensitive data in production
fix
Use Level.HEADERS or Level.BASIC instead of Level.BODY in production
affects: all versions
Upgrade
Version history
5.3.2latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
22 hits · last 30 days
node
20
Resources
logging-interceptor — mvn dependency:get logging-interceptor · libregistry