Class CorrelationIdConverter
java.lang.Object
ch.qos.logback.core.pattern.Converter<ILoggingEvent>
ch.qos.logback.core.pattern.FormattingConverter<ILoggingEvent>
ch.qos.logback.core.pattern.DynamicConverter<ILoggingEvent>
org.springframework.boot.logging.logback.CorrelationIdConverter
- All Implemented Interfaces:
ContextAware, LifeCycle
Logback
DynamicConverter to convert a CorrelationIdFormatter pattern
into formatted output using data from the MDC
and Environment.- Since:
- 3.2.0
- Author:
- Phillip Webb
- See Also:
-
Field Summary
Fields inherited from class DynamicConverter
started -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class DynamicConverter
addError, addError, addInfo, addInfo, addStatus, addWarn, addWarn, getContext, getFirstOption, getOptionList, isStarted, setContext, setOptionListMethods inherited from class FormattingConverter
getFormattingInfo, setFormattingInfo, write
-
Constructor Details
-
CorrelationIdConverter
public CorrelationIdConverter()
-
-
Method Details
-
start
public void start()- Specified by:
startin interfaceLifeCycle- Overrides:
startin classDynamicConverter<ILoggingEvent>
-
stop
public void stop()- Specified by:
stopin interfaceLifeCycle- Overrides:
stopin classDynamicConverter<ILoggingEvent>
-
convert
- Specified by:
convertin classConverter<ILoggingEvent>
-