Class StructuredLogFormatterFactory.CommonFormatters<E>
java.lang.Object
org.springframework.boot.logging.structured.StructuredLogFormatterFactory.CommonFormatters<E>
- Type Parameters:
E
- the log event type
- Enclosing class:
StructuredLogFormatterFactory<E>
Callback used for configure the
StructuredLogFormatterFactory.CommonFormatterFactory
to use for a given
CommonStructuredLogFormat
.- Since:
- 3.4.0
- Author:
- Moritz Halbritter, Phillip Webb
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
add
(CommonStructuredLogFormat format, StructuredLogFormatterFactory.CommonFormatterFactory<E> factory) Add the factory that should be used for the givenCommonStructuredLogFormat
.
-
Constructor Details
-
CommonFormatters
public CommonFormatters()
-
-
Method Details
-
add
public void add(CommonStructuredLogFormat format, StructuredLogFormatterFactory.CommonFormatterFactory<E> factory) Add the factory that should be used for the givenCommonStructuredLogFormat
.- Parameters:
format
- the common structured log formatfactory
- the factory to use
-