@API(status=STABLE) public final class FastJsonHttpLogFormatter extends Object implements HttpLogFormatter
HttpLogFormatter that produces JSON objects.| Constructor and Description |
|---|
FastJsonHttpLogFormatter() |
FastJsonHttpLogFormatter(com.fasterxml.jackson.databind.ObjectMapper mapper) |
| Modifier and Type | Method and Description |
|---|---|
String |
format(Correlation correlation,
HttpResponse response) |
String |
format(Precorrelation precorrelation,
HttpRequest request) |
void |
prepare(Correlation correlation,
HttpResponse response,
com.fasterxml.jackson.core.JsonGenerator generator) |
void |
prepare(Precorrelation precorrelation,
HttpRequest request,
com.fasterxml.jackson.core.JsonGenerator generator) |
public FastJsonHttpLogFormatter()
public FastJsonHttpLogFormatter(com.fasterxml.jackson.databind.ObjectMapper mapper)
public String format(Precorrelation precorrelation, HttpRequest request) throws IOException
format in interface HttpLogFormatterIOException@API(status=EXPERIMENTAL) public void prepare(Precorrelation precorrelation, HttpRequest request, com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOExceptionpublic String format(Correlation correlation, HttpResponse response) throws IOException
format in interface HttpLogFormatterIOException@API(status=EXPERIMENTAL) public void prepare(Correlation correlation, HttpResponse response, com.fasterxml.jackson.core.JsonGenerator generator) throws IOException
IOExceptionCopyright © 2015–2019 Zalando SE. All rights reserved.