Module org.zalando.logbook.json
Package org.zalando.logbook.json
Class FastJsonHttpLogFormatterJackson2
java.lang.Object
org.zalando.logbook.json.FastJsonHttpLogFormatterJackson2
- All Implemented Interfaces:
org.zalando.logbook.HttpLogFormatter
@API(status=STABLE)
public final class FastJsonHttpLogFormatterJackson2
extends Object
implements org.zalando.logbook.HttpLogFormatter
A custom
HttpLogFormatter that produces JSON objects.-
Constructor Summary
ConstructorsConstructorDescriptionFastJsonHttpLogFormatterJackson2(com.fasterxml.jackson.databind.ObjectMapper mapper) FastJsonHttpLogFormatterJackson2(com.fasterxml.jackson.databind.ObjectMapper mapper, JsonFieldWriterJackson2 writer) -
Method Summary
-
Constructor Details
-
FastJsonHttpLogFormatterJackson2
public FastJsonHttpLogFormatterJackson2() -
FastJsonHttpLogFormatterJackson2
public FastJsonHttpLogFormatterJackson2(com.fasterxml.jackson.databind.ObjectMapper mapper) -
FastJsonHttpLogFormatterJackson2
public FastJsonHttpLogFormatterJackson2(com.fasterxml.jackson.databind.ObjectMapper mapper, JsonFieldWriterJackson2 writer)
-
-
Method Details
-
format
public String format(org.zalando.logbook.Precorrelation precorrelation, org.zalando.logbook.HttpRequest request) throws IOException - Specified by:
formatin interfaceorg.zalando.logbook.HttpLogFormatter- Throws:
IOException
-
format
public String format(org.zalando.logbook.Correlation correlation, org.zalando.logbook.HttpResponse response) throws IOException - Specified by:
formatin interfaceorg.zalando.logbook.HttpLogFormatter- Throws:
IOException
-