java.lang.Object
org.zalando.logbook.json.FastJsonHttpLogFormatter
- All Implemented Interfaces:
org.zalando.logbook.HttpLogFormatter
@API(status=STABLE)
public final class FastJsonHttpLogFormatter
extends Object
implements org.zalando.logbook.HttpLogFormatter
A custom
HttpLogFormatter that produces JSON objects.-
Constructor Summary
ConstructorsConstructorDescriptionFastJsonHttpLogFormatter(tools.jackson.databind.json.JsonMapper mapper) FastJsonHttpLogFormatter(tools.jackson.databind.json.JsonMapper mapper, JsonFieldWriter writer) -
Method Summary
-
Constructor Details
-
FastJsonHttpLogFormatter
public FastJsonHttpLogFormatter() -
FastJsonHttpLogFormatter
public FastJsonHttpLogFormatter(tools.jackson.databind.json.JsonMapper mapper) -
FastJsonHttpLogFormatter
public FastJsonHttpLogFormatter(tools.jackson.databind.json.JsonMapper mapper, JsonFieldWriter 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
-