接口 StructuredLoggingJsonMembersCustomizer<T>
- 类型参数:
T- the type being written
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
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
- 从以下版本开始:
- 3.4.0
- 作者:
- Phillip Webb
- 另请参阅:
-
方法概要
修饰符和类型方法说明voidcustomize(JsonWriter.Members<T> members) Customize the givenJsonWriter.Membersinstance.
-
方法详细资料
-
customize
Customize the givenJsonWriter.Membersinstance.- 参数:
members- the members instance to customize
-