Interface LogFormatter
-
Method Summary
Modifier and TypeMethodDescriptionstatic JsonLogFormatterBuilder
Returns a newly createdJsonLogFormatterBuilder
.static TextLogFormatterBuilder
Returns a newly createdTextLogFormatterBuilder
.Returns the formatted request log message of theRequestOnlyLog
.formatResponse
(RequestLog log) Returns the formatted response log message that is constructed byRequestLog
.static LogFormatter
ofJson()
Returns the default JSONLogFormatter
that converts aRequestOnlyLog
orRequestLog
into a JSON format message.static LogFormatter
ofJson
(ObjectMapper objectMapper) Returns a newly createdLogFormatter
that converts aRequestOnlyLog
orRequestLog
into JSON format log message by using the specifiedObjectMapper
.static LogFormatter
ofText()
Returns the default textLogFormatter
.
-
Method Details
-
ofText
Returns the default textLogFormatter
. -
builderForText
Returns a newly createdTextLogFormatterBuilder
. -
ofJson
Returns the default JSONLogFormatter
that converts aRequestOnlyLog
orRequestLog
into a JSON format message. -
ofJson
Returns a newly createdLogFormatter
that converts aRequestOnlyLog
orRequestLog
into JSON format log message by using the specifiedObjectMapper
. -
builderForJson
Returns a newly createdJsonLogFormatterBuilder
. -
formatRequest
Returns the formatted request log message of theRequestOnlyLog
. -
formatResponse
Returns the formatted response log message that is constructed byRequestLog
.
-