Package com.github.loki4j.logback.json
Interface JsonFieldSerializer<V>
-
- Type Parameters:
V- Expected input field value type.
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
@FunctionalInterface public interface JsonFieldSerializer<V>This interface allows to customize how a particular field is written to JSON.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidwriteField(JsonEventWriter writer, java.lang.String fieldName, V fieldValue)Write a field into JSON event layout.
-
-
-
Method Detail
-
writeField
void writeField(JsonEventWriter writer, java.lang.String fieldName, V fieldValue)
Write a field into JSON event layout.- Parameters:
writer- JSON writer to use.fieldName- Name of the field to write.fieldValue- Value of the field to write.
-
-