Interface StructuredLoggingJsonMembersCustomizer<T>
- Type Parameters:
T
- the type being written
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
Customizer that can be injected into
StructuredLogFormatter
implementations to
customize JsonWriter
JsonWriter.Members
.
An implementation may be provided using the logging.structured.json.customizer
property. Alternatively, implementations can be registered in
META-INF/spring.factories
under the key
org.springframework.boot.logging.structured.StructuredLoggingJsonMembersCustomizer
.
Implementing classes can declare the following parameter types in the constructor:
When using Logback, implementing classes can also use the following parameter types in the constructor:ThrowableProxyConverter
- Since:
- 3.4.0
- Author:
- Phillip Webb
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoid
customize
(JsonWriter.Members<T> members) Customize the givenJsonWriter.Members
instance.
-
Method Details
-
customize
Customize the givenJsonWriter.Members
instance.- Parameters:
members
- the members instance to customize
-