Interface StructuredArgument
- All Known Implementing Classes:
DeferredStructuredArgument, EmptyLogstashMarker, MapEntriesAppendingMarker, ObjectAppendingMarker, ObjectFieldsAppendingMarker, RawJsonAppendingMarker, SingleFieldAppendingMarker
public interface StructuredArgument
A wrapper for an argument passed to a log method (e.g.
Logger.info(String, Object...))
that adds data to the JSON event (via ArgumentsJsonProvider).-
Method Summary
Modifier and TypeMethodDescriptiontoString()Writes the data associated with this argument to aStringto be included in a log event's formatted message (via parameter substitution).voidwriteTo(JsonGenerator generator) Writes the data associated with this argument to the givenJsonGenerator.
-
Method Details
-
writeTo
Writes the data associated with this argument to the givenJsonGenerator.- Parameters:
generator- theJsonGeneratorto produce JSON content
-
toString
-