build() — spring-boot Function Reference
Architecture documentation for the build() function in StructuredLogLayout.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD d4ba61e7_26bf_03df_6ef8_0c66cb1c80ba["build()"] 6f1df6da_a28d_0edd_5516_a00dc1153a58["build()"] d4ba61e7_26bf_03df_6ef8_0c66cb1c80ba -->|calls| 6f1df6da_a28d_0edd_5516_a00dc1153a58 e10d9612_2c22_3d09_07d0_9a15e8e9a788["StructuredLogLayout()"] d4ba61e7_26bf_03df_6ef8_0c66cb1c80ba -->|calls| e10d9612_2c22_3d09_07d0_9a15e8e9a788 265004e7_cc1c_e0cb_8596_2c0d8134eea9["get()"] d4ba61e7_26bf_03df_6ef8_0c66cb1c80ba -->|calls| 265004e7_cc1c_e0cb_8596_2c0d8134eea9 style d4ba61e7_26bf_03df_6ef8_0c66cb1c80ba fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/StructuredLogLayout.java lines 100–109
@Override
public StructuredLogLayout build() {
Charset charset = Charset.forName(this.charset);
Environment environment = Log4J2LoggingSystem.getEnvironment(this.loggerContext);
Assert.state(environment != null, "Unable to find Spring Environment in logger context");
StructuredLogFormatter<LogEvent> formatter = new StructuredLogFormatterFactory<>(LogEvent.class,
environment, null, this::addCommonFormatters)
.get(this.format);
return new StructuredLogLayout(charset, formatter);
}
Domain
Subdomains
Source
Frequently Asked Questions
What does build() do?
build() is a function in the spring-boot codebase.
What does build() call?
build() calls 3 function(s): StructuredLogLayout, build, get.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free