StructuredLoggingJsonMembersCustomizer

Customizer that can be injected into StructuredLogFormatter implementations to customize JsonWriterMembers.

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

Author

Phillip Webb

Since

3.4.0

Parameters

<T>

the type being written

See also

Functions

Link copied to clipboard
abstract fun customize(members: JsonWriter.Members<T>)
Customize the given Members instance.