public interface StructuredArgument
Logger.info(String, Object...)
)
that adds data to the JSON event (via ArgumentsJsonProvider
).Modifier and Type | Method and Description |
---|---|
String |
toString()
Writes the data associated with this argument to a
String to be
included in a log event's formatted message (via parameter substitution). |
void |
writeTo(JsonGenerator generator)
Writes the data associated with this argument to the given
JsonGenerator . |
void writeTo(JsonGenerator generator) throws IOException
JsonGenerator
.generator
- the JsonGenerator
to produce JSON contentIOException
- if an I/O error occursString toString()
String
to be
included in a log event's formatted message (via parameter substitution).
Note that this will only be included in the log event's formatted message if the message format includes a parameter for this argument.
Copyright © 2013–2021. All rights reserved.