loadDefaults() — spring-boot Function Reference
Architecture documentation for the loadDefaults() function in LogbackLoggingSystem.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 647ef14c_5da4_24a4_ddac_0beb0e1b96f5["loadDefaults()"] af5c3bf3_23e4_0c15_5388_33a818bb8c5b["loadDefaults()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| af5c3bf3_23e4_0c15_5388_33a818bb8c5b 38e995b4_1ef1_6922_5bd2_636797effcbc["getLoggerContext()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 92be7141_fcb5_fc46_efa1_0ecddfb50dbd["stopAndReset()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| 92be7141_fcb5_fc46_efa1_0ecddfb50dbd 05d574bb_2449_135b_2a57_ca01664538a0["withLoggingSuppressed()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| 05d574bb_2449_135b_2a57_ca01664538a0 aa249080_5507_10e2_df79_a6fbb70d13c8["putInitializationContextObjects()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| aa249080_5507_10e2_df79_a6fbb70d13c8 a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97 8f662307_8c4e_3f0c_c026_0b74de036dae["getDefaultValueResolver()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| 8f662307_8c4e_3f0c_c026_0b74de036dae ce3696cf_77dd_9520_e3ee_8873df6cb400["apply()"] 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 -->|calls| ce3696cf_77dd_9520_e3ee_8873df6cb400 style 647ef14c_5da4_24a4_ddac_0beb0e1b96f5 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java lines 230–250
@Override
protected void loadDefaults(LoggingInitializationContext initializationContext, @Nullable LogFile logFile) {
LoggerContext loggerContext = getLoggerContext();
stopAndReset(loggerContext);
withLoggingSuppressed(() -> {
boolean debug = Boolean.getBoolean("logback.debug");
putInitializationContextObjects(loggerContext, initializationContext);
SystemStatusListener.addTo(loggerContext, debug);
Environment environment = initializationContext.getEnvironment();
Assert.state(environment != null, "'environment' must not be null");
// Apply system properties directly in case the same JVM runs multiple apps
new LogbackLoggingSystemProperties(environment, getDefaultValueResolver(environment),
loggerContext::putProperty)
.apply(logFile);
LogbackConfigurator configurator = (!debug) ? new LogbackConfigurator(loggerContext)
: new DebugLogbackConfigurator(loggerContext);
new DefaultLogbackConfiguration(logFile).apply(configurator);
loggerContext.setPackagingDataEnabled(true);
loggerContext.start();
});
}
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does loadDefaults() do?
loadDefaults() is a function in the spring-boot codebase.
What does loadDefaults() call?
loadDefaults() calls 8 function(s): apply, getDefaultValueResolver, getEnvironment, getLoggerContext, loadDefaults, putInitializationContextObjects, stopAndReset, withLoggingSuppressed.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free