接口 StructuredLoggingJsonMembersCustomizer<T>

类型参数:
T - the type being written
函数接口:
这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。

@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:

When using Logback, implementing classes can also use the following parameter types in the constructor:
  • ThrowableProxyConverter
从以下版本开始:
3.4.0
作者:
Phillip Webb
另请参阅: