Extractor Class — spring-boot Architecture
Architecture documentation for the Extractor class in Extractor.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/Extractor.java lines 33–59
class Extractor {
private final @Nullable StackTracePrinter stackTracePrinter;
private final ThrowableProxyConverter throwableProxyConverter;
Extractor(@Nullable StackTracePrinter stackTracePrinter, ThrowableProxyConverter throwableProxyConverter) {
this.stackTracePrinter = stackTracePrinter;
this.throwableProxyConverter = throwableProxyConverter;
}
String messageAndStackTrace(ILoggingEvent event) {
return event.getFormattedMessage() + "\n\n" + stackTrace(event);
}
String stackTrace(ILoggingEvent event) {
if (this.stackTracePrinter != null) {
IThrowableProxy throwableProxy = event.getThrowableProxy();
Assert.state(throwableProxy instanceof ThrowableProxy,
"Instance must be a ThrowableProxy in order to print exception");
Throwable throwable = ((ThrowableProxy) throwableProxy).getThrowable();
return this.stackTracePrinter.printStackTraceToString(throwable);
}
return this.throwableProxyConverter.convert(event);
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free