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:
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceBuilder that can be injected into aStructuredLogFormatterto build theStructuredLoggingJsonMembersCustomizerwhen specific settings are required. -
Method Summary
Modifier and TypeMethodDescriptionvoidcustomize(JsonWriter.Members<T> members) Customize the givenJsonWriter.Membersinstance.
-
Method Details
-
customize
Customize the givenJsonWriter.Membersinstance.- Parameters:
members- the members instance to customize
-