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.

@FunctionalInterface public interface StructuredLoggingJsonMembersCustomizer<T>
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:

  • Environment
When using Logback, implementing classes can also use the following parameter types in the constructor:
  • ThrowableProxyConverter

Since:
3.4.0
See Also: