CustomLogbackStructuredLoggingFormatterWithInjection Class — spring-boot Architecture
Architecture documentation for the CustomLogbackStructuredLoggingFormatterWithInjection class in StructuredLogEncoderTests.java from the spring-boot codebase.
Entity Profile
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/StructuredLogEncoderTests.java lines 188–208
static final class CustomLogbackStructuredLoggingFormatterWithInjection
implements StructuredLogFormatter<ILoggingEvent> {
private final Environment environment;
private final ThrowableProxyConverter throwableProxyConverter;
CustomLogbackStructuredLoggingFormatterWithInjection(Environment environment,
ThrowableProxyConverter throwableProxyConverter) {
this.environment = environment;
this.throwableProxyConverter = throwableProxyConverter;
}
@Override
public String format(ILoggingEvent event) {
boolean hasThrowableProxyConverter = this.throwableProxyConverter != null;
return "custom-format-with-injection pid=" + this.environment.getProperty("spring.application.pid")
+ " hasThrowableProxyConverter=" + hasThrowableProxyConverter;
}
}
Domain
Source
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free