Riptide: Logbook adds Logbook support to Riptide.
Http.builder()
.plugin(new LogbookPlugin(logbook))
.build();
- Logbook (request and response logging) support
- Riptide: Core
Add the following dependency to your project:
<dependency>
<groupId>org.zalando</groupId>
<artifactId>riptide-logbook</artifactId>
<version>${riptide.version}</version>
</dependency>
Configuration of Logbook is documented at zalando/logbook.
If configuring it manually is not desired you're encouraged to make use of the Logbook- and Riptide Spring Boot Auto Configuration
The default configuration will produce log message like the following:
Incoming Request: 2d66e4bc-9a0d-11e5-a84c-1f39510f0d6b
GET http://example.org/test HTTP/1.1
Accept: application/json
Host: localhost
Content-Type: text/plain
Hello world!
Outgoing Response: 2d66e4bc-9a0d-11e5-a84c-1f39510f0d6b
Duration: 25 ms
HTTP/1.1 200
Content-Type: application/json
{"value":"Hello world!"}
If you have questions, concerns, bug reports, etc., please file an issue in this repository's Issue Tracker.
To contribute, simply make a pull request and add a brief description (1-2 sentences) of your addition or change. For more details, check the contribution guidelines.