{"repo":"dkorobtsov/plinter","free":true,"listed":false,"github":"https://github.com/dkorobtsov/plinter","clone":"git clone https://github.com/dkorobtsov/plinter.git","description":"Captures HTTP client traffic and pretty prints it with any Java logger. Supported clients: OkHttp, OkHttp3, ApacheHttpClient.","language":"Java","stars":24,"topics":["interceptor","okhttp3","okhttp","logging","retrofit2","feign","log4j2"],"license":null,"category":"analytics","readme_excerpt":"Plinter (Pretty Logging Interceptor) This library makes working with APIs easy and convenient. Just attach interceptor to your favorite HTTP client and forward all requests and responses to any Java logger (or use default one). Simple as that. -------- [ ][release] [release]: https://github.com/dkorobtsov/plinter/releases/latest \"Latest release\" Features - No configuration needed, works as is - Easy to customize if needed - Several output formats supported out of the box - Supports most popular HTTP clients - Supports all Java/Kotlin loggers - Can be used with Feign or Retrofit - Works with clients created by Swagger-codegen - Pretty prints all HTTP request and response details - Pretty prints JSON, XML and HTML bodies, etc. (basically any readable content) Clients supported - OkHttp - OkHttp 3 - Apache HttpClient Loggers supported Any Java or Kotlin logger - jul, log4j, slf4j, logback, log4j2 etc Quickstart Interceptor should work as is - without any additional configuration, only need to add appropriate dependency. By default, JUL logger will be used with INFO level and minimal format displaying message only. All artefacts are deployed to: https://repo.maven.apache.org/maven2/io/github/dkorobtsov/plinter/ Gradle OkHttp To start using interceptor with OkHttp client add following dependency to classpath: Maven: Gradle: Check releases for latest interceptor version. Basic usage example: Tip: Can be used with REST client created by swagger-codegen using okhttp-gson template. Ok","default_branch":null,"files":null,"tree":[],"storefront":"/r/dkorobtsov","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dkorobtsov/plinter/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."}