{"repo":"bartek-wesolowski/customizable-okhttp-logging-interceptor","free":true,"listed":false,"github":"https://github.com/bartek-wesolowski/customizable-okhttp-logging-interceptor","clone":"git clone https://github.com/bartek-wesolowski/customizable-okhttp-logging-interceptor.git","description":"An OkHttp interceptor which logs HTTP request and response data and allows output customization.","language":"Kotlin","stars":25,"topics":["logging","networking","okhttp"],"license":"MIT","category":"networking-infra","readme_excerpt":"Customizable OkHttp Logging Interceptor =================== An [OkHttp interceptor][interceptors] which logs HTTP request and response data and allows output customization. The implementation is based on the [Logging Interceptor from OkHttp][okhttp-logging-interceptor]. To log to a custom location, pass a Logger instance to the constructor. Warning : The logs generated by this interceptor when using the HEADERS or BODY levels have the potential to leak sensitive information such as \"Authorization\" or \"Cookie\" headers and the contents of request and response bodies. This data should only be logged in a controlled way or in a non-production environment. You can redact headers that may contain sensitive information by calling redactHeader() . Installation -------- Customizable OkHttp Logging Interceptor is available on Maven Central. Add the following to your build.gradle / build.gradle.kts file: Groovy DSL Kotlin DSL [interceptors]: https://square.github.io/okhttp/interceptors/ [okhttp-logging-interceptor]: https://github.com/square/okhttp/tree/master/okhttp-logging-interceptor","default_branch":null,"files":null,"tree":[],"storefront":"/r/bartek-wesolowski","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bartek-wesolowski/customizable-okhttp-logging-interceptor/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}