Skip to content

Latest commit

 

History

History
 
 

riptide-logbook

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 

Riptide: Logbook

Logbook

Javadoc Maven Central

Riptide: Logbook adds Logbook support to Riptide.

Example

Http.builder()
    .plugin(new LogbookPlugin(logbook))
    .build();

Features

  • Logbook (request and response logging) support

Dependencies

  • Riptide: Core

Installation

Add the following dependency to your project:

<dependency>
    <groupId>org.zalando</groupId>
    <artifactId>riptide-logbook</artifactId>
    <version>${riptide.version}</version>
</dependency>

Configuration

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!"}

Getting Help

If you have questions, concerns, bug reports, etc., please file an issue in this repository's Issue Tracker.

Getting Involved/Contributing

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.