loadConfiguration() — spring-boot Function Reference
Architecture documentation for the loadConfiguration() function in LogbackLoggingSystem.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD cafc9a8c_e23a_b8c4_5c44_2f02f0d89617["loadConfiguration()"] 6b2b0aa1_585b_b5a9_e61a_bb68da10b08b["reinitialize()"] 6b2b0aa1_585b_b5a9_e61a_bb68da10b08b -->|calls| cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 995be58e_c474_c5df_9906_ce25004af8e3["loadConfiguration()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 995be58e_c474_c5df_9906_ce25004af8e3 38e995b4_1ef1_6922_5bd2_636797effcbc["getLoggerContext()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 38e995b4_1ef1_6922_5bd2_636797effcbc 92be7141_fcb5_fc46_efa1_0ecddfb50dbd["stopAndReset()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 92be7141_fcb5_fc46_efa1_0ecddfb50dbd 05d574bb_2449_135b_2a57_ca01664538a0["withLoggingSuppressed()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 05d574bb_2449_135b_2a57_ca01664538a0 aa249080_5507_10e2_df79_a6fbb70d13c8["putInitializationContextObjects()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| aa249080_5507_10e2_df79_a6fbb70d13c8 a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97 3161e68f_7653_889d_8e48_3167c6148b62["applySystemProperties()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 3161e68f_7653_889d_8e48_3167c6148b62 bf622409_ecb0_639e_7b19_3b82ea0b8f3f["configureByResourceUrl()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| bf622409_ecb0_639e_7b19_3b82ea0b8f3f 19da2568_f743_7d19_1cd4_f1307cfec4c9["reportConfigurationErrorsIfNecessary()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 19da2568_f743_7d19_1cd4_f1307cfec4c9 5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59["getResource()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 5ea8357e_a689_1ed1_dd1d_d85bc3ac4c59 12690030_33ae_7a5c_1c16_cca9534d2ced["get()"] cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 -->|calls| 12690030_33ae_7a5c_1c16_cca9534d2ced style cafc9a8c_e23a_b8c4_5c44_2f02f0d89617 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/logback/LogbackLoggingSystem.java lines 252–275
@Override
protected void loadConfiguration(LoggingInitializationContext initializationContext, String location,
@Nullable LogFile logFile) {
LoggerContext loggerContext = getLoggerContext();
stopAndReset(loggerContext);
withLoggingSuppressed(() -> {
putInitializationContextObjects(loggerContext, initializationContext);
if (initializationContext != null) {
Environment environment = initializationContext.getEnvironment();
Assert.state(environment != null, "'environment' must not be null");
applySystemProperties(environment, logFile);
}
SystemStatusListener.addTo(loggerContext);
try {
Resource resource = ApplicationResourceLoader.get().getResource(location);
configureByResourceUrl(initializationContext, loggerContext, resource.getURL());
}
catch (Exception ex) {
throw new IllegalStateException("Could not initialize Logback logging from " + location, ex);
}
loggerContext.start();
});
reportConfigurationErrorsIfNecessary(loggerContext);
}
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does loadConfiguration() do?
loadConfiguration() is a function in the spring-boot codebase.
What does loadConfiguration() call?
loadConfiguration() calls 11 function(s): applySystemProperties, configureByResourceUrl, get, getEnvironment, getLoggerContext, getResource, loadConfiguration, putInitializationContextObjects, and 3 more.
What calls loadConfiguration()?
loadConfiguration() is called by 1 function(s): reinitialize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free