CorrelationIdConverter Class — spring-boot Architecture
Architecture documentation for the CorrelationIdConverter class in CorrelationIdConverter.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/CorrelationIdConverter.java lines 38–63
public class CorrelationIdConverter extends DynamicConverter<ILoggingEvent> {
private @Nullable CorrelationIdFormatter formatter;
@Override
public void start() {
this.formatter = CorrelationIdFormatter.of(getOptionList());
super.start();
}
@Override
public void stop() {
this.formatter = null;
super.stop();
}
@Override
public String convert(ILoggingEvent event) {
if (this.formatter == null) {
return "";
}
Map<String, String> mdc = event.getMDCPropertyMap();
return this.formatter.format(mdc::get);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free