Home / Function/ initialize() — spring-boot Function Reference

initialize() — spring-boot Function Reference

Architecture documentation for the initialize() function in LogbackLoggingSystemTests.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 5 called by 75

Entity Profile

Dependency Diagram

graph TD
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  4aec144f_3e74_9612_64e0_243ed8003751["logbackDefaultsConfigurationDoesNotTriggerDeprecation()"]
  4aec144f_3e74_9612_64e0_243ed8003751 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  1bd07e4d_b8ee_e501_cca3_b1b6abb16b14["logbackBaseConfigurationDoesNotTriggerDeprecation()"]
  1bd07e4d_b8ee_e501_cca3_b1b6abb16b14 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  27326c3e_bbe8_1a13_e5ac_2b70fa2096dd["jbossLoggingRoutesThroughSlf4jWhenLoggingSystemIsInitialized()"]
  27326c3e_bbe8_1a13_e5ac_2b70fa2096dd -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  3f91f79d_2a87_c677_6c0d_736a85a41c25["noFile()"]
  3f91f79d_2a87_c677_6c0d_736a85a41c25 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  34d2c822_c47d_87af_b91c_1cd508fd160c["withFile()"]
  34d2c822_c47d_87af_b91c_1cd508fd160c -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  1d2e518a_fafe_9f5f_e24d_4ed5dbbabe44["defaultConfigConfiguresAConsoleAppender()"]
  1d2e518a_fafe_9f5f_e24d_4ed5dbbabe44 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  5cdb32a5_e0e9_fd40_c1db_82fc5b6b4e58["testNonDefaultConfigLocation()"]
  5cdb32a5_e0e9_fd40_c1db_82fc5b6b4e58 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  7b0a3f69_c5b8_6621_6532_c713aa23be19["testLogbackSpecificSystemProperty()"]
  7b0a3f69_c5b8_6621_6532_c713aa23be19 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  aa906fd9_83be_3512_2f74_464867118728["testNonexistentConfigLocation()"]
  aa906fd9_83be_3512_2f74_464867118728 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  4b1f474c_e884_a17c_2829_2770c0811d3f["setLevel()"]
  4b1f474c_e884_a17c_2829_2770c0811d3f -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  c06f0ec7_9b55_a65d_df17_51b9549422eb["setLevelToNull()"]
  c06f0ec7_9b55_a65d_df17_51b9549422eb -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  ab8bc05a_a7fe_2470_a7b0_672c73c09c0e["getLoggerConfigurations()"]
  ab8bc05a_a7fe_2470_a7b0_672c73c09c0e -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  b15c04a4_75eb_7e91_22a9_00e01be70d97["getLoggerConfiguration()"]
  b15c04a4_75eb_7e91_22a9_00e01be70d97 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  16dd6654_1707_0927_cec2_713038349dba["getLoggerConfigurationForLoggerThatDoesNotExistShouldReturnNull()"]
  16dd6654_1707_0927_cec2_713038349dba -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  style 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 1146–1153

	private void initialize(LoggingInitializationContext context, @Nullable String configLocation,
			@Nullable LogFile logFile) {
		ConfigurableEnvironment environment = (ConfigurableEnvironment) context.getEnvironment();
		assertThat(environment).isNotNull();
		this.loggingSystem.getSystemProperties(environment).apply(logFile);
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(context, configLocation, logFile);
	}

Domain

Subdomains

Called By

Frequently Asked Questions

What does initialize() do?
initialize() is a function in the spring-boot codebase.
What does initialize() call?
initialize() calls 5 function(s): apply, beforeInitialize, getEnvironment, getSystemProperties, initialize.
What calls initialize()?
initialize() is called by 75 function(s): applicationGroupLoggingToConsoleWhenDisabled, applicationGroupLoggingToConsoleWhenHasApplicationGroup, applicationGroupLoggingToConsoleWhenHasApplicationGroupWithParenthesis, applicationGroupLoggingToFileWhenDisabled, applicationGroupLoggingToFileWhenHasApplicationGroup, applicationGroupLoggingToFileWhenHasApplicationGroupWithParenthesis, applicationNameLoggingToConsoleWhenDisabled, applicationNameLoggingToConsoleWhenHasApplicationName, and 67 more.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free