createPrinter() — spring-boot Function Reference
Architecture documentation for the createPrinter() function in StructuredLoggingJsonProperties.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 7f8a7d63_e2c3_1bed_e537_f5964fa081b9["createPrinter()"] fd4dde3c_437a_4218_ff2a_0ae79f4c2dd2["sanitizePrinter()"] 7f8a7d63_e2c3_1bed_e537_f5964fa081b9 -->|calls| fd4dde3c_437a_4218_ff2a_0ae79f4c2dd2 3158ea56_3472_84a5_488a_467bc8245dd6["hasAnyOtherProperty()"] 7f8a7d63_e2c3_1bed_e537_f5964fa081b9 -->|calls| 3158ea56_3472_84a5_488a_467bc8245dd6 f63a9d31_04e0_165f_6d0a_457f92c83216["createStandardPrinter()"] 7f8a7d63_e2c3_1bed_e537_f5964fa081b9 -->|calls| f63a9d31_04e0_165f_6d0a_457f92c83216 3bcea378_40c2_32fb_cc0c_e14053a9dbfd["instantiate()"] 7f8a7d63_e2c3_1bed_e537_f5964fa081b9 -->|calls| 3bcea378_40c2_32fb_cc0c_e14053a9dbfd style 7f8a7d63_e2c3_1bed_e537_f5964fa081b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/structured/StructuredLoggingJsonProperties.java lines 105–118
@Nullable StackTracePrinter createPrinter() {
String name = sanitizePrinter();
if ("loggingsystem".equals(name) || (name.isEmpty() && !hasAnyOtherProperty())) {
return null;
}
StandardStackTracePrinter standardPrinter = createStandardPrinter();
if ("standard".equals(name) || name.isEmpty()) {
return standardPrinter;
}
Assert.state(printer() != null, "'printer' must not be null");
return (StackTracePrinter) new Instantiator<>(StackTracePrinter.class,
(parameters) -> parameters.add(StandardStackTracePrinter.class, standardPrinter))
.instantiate(printer());
}
Domain
Subdomains
Calls
- createStandardPrinter()
- hasAnyOtherProperty()
- instantiate()
- sanitizePrinter()
Source
Frequently Asked Questions
What does createPrinter() do?
createPrinter() is a function in the spring-boot codebase.
What does createPrinter() call?
createPrinter() calls 4 function(s): createStandardPrinter, hasAnyOtherProperty, instantiate, sanitizePrinter.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free