JsonWriterStructuredLogFormatter

Base class for StructuredLogFormatter implementations that generates JSON using a JsonWriter.

Author

Phillip Webb

Since

3.4.0

Parameters

<E>

the log event type

Functions

Link copied to clipboard
open fun format(event: E): String
Formats the given log event to a String.
Link copied to clipboard
open fun formatAsBytes(event: E, charset: Charset): Array<Byte>
Formats the given log event to a byte array.