Interface StructuredArgument
-
- All Known Implementing Classes:
KeyValueStructuredArgument
public interface StructuredArgumentA wrapper for an argument passed to a log method (e.g.Logger.info(String, Object...)) that adds data to the JSON event (viaArgumentsJsonProvider).
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description StringtoString()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 Detail
-
writeTo
void writeTo(JsonGenerator generator) throws IOException
Writes the data associated with this argument to the givenJsonGenerator.- Throws:
IOException
-
toString
String toString()
Writes the data associated with this argument to aStringto 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.
-
-