reconfigure() — spring-boot Function Reference
Architecture documentation for the reconfigure() function in Log4J2LoggingSystem.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 6c72df89_25e5_64d0_2ed8_884a54431f88["reconfigure()"] 1713cec4_0f07_a26a_cf7f_ab9b57549a5a["load()"] 1713cec4_0f07_a26a_cf7f_ab9b57549a5a -->|calls| 6c72df89_25e5_64d0_2ed8_884a54431f88 1713cec4_0f07_a26a_cf7f_ab9b57549a5a["load()"] 6c72df89_25e5_64d0_2ed8_884a54431f88 -->|calls| 1713cec4_0f07_a26a_cf7f_ab9b57549a5a 5ba3f868_a29c_7e6a_f220_04c9036b258c["loadOverride()"] 6c72df89_25e5_64d0_2ed8_884a54431f88 -->|calls| 5ba3f868_a29c_7e6a_f220_04c9036b258c 62ac176a_5f3c_3443_42d7_0406c9a0f88c["mergeConfigurations()"] 6c72df89_25e5_64d0_2ed8_884a54431f88 -->|calls| 62ac176a_5f3c_3443_42d7_0406c9a0f88c 272568bf_02f3_72db_ef7c_d7db470595d1["getClassLoader()"] 6c72df89_25e5_64d0_2ed8_884a54431f88 -->|calls| 272568bf_02f3_72db_ef7c_d7db470595d1 style 6c72df89_25e5_64d0_2ed8_884a54431f88 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java lines 286–304
private void reconfigure(String location, List<String> overrides) {
Assert.notNull(location, "'location' must not be null");
try {
List<Configuration> configurations = new ArrayList<>();
ResourceLoader resourceLoader = ApplicationResourceLoader.get(getClassLoader());
configurations.add(load(resourceLoader, location));
for (String override : overrides) {
Configuration overrideConfiguration = loadOverride(resourceLoader, override);
if (overrideConfiguration != null) {
configurations.add(overrideConfiguration);
}
}
this.loggerContext.reconfigure(mergeConfigurations(configurations));
}
catch (Exception ex) {
throw new IllegalStateException("Could not initialize Log4J2 logging from %s%s".formatted(location,
(overrides.isEmpty() ? "" : " with overrides " + overrides)), ex);
}
}
Domain
Subdomains
Calls
- getClassLoader()
- load()
- loadOverride()
- mergeConfigurations()
Called By
Source
Frequently Asked Questions
What does reconfigure() do?
reconfigure() is a function in the spring-boot codebase.
What does reconfigure() call?
reconfigure() calls 4 function(s): getClassLoader, load, loadOverride, mergeConfigurations.
What calls reconfigure()?
reconfigure() is called by 1 function(s): load.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free