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

initialize() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 10 called by 2

Entity Profile

Dependency Diagram

graph TD
  81d3722d_c4b6_44b8_92ad_5eddf72c432c["initialize()"]
  a34e7b09_f065_7373_f4bc_df6d5d30ee39["onApplicationEnvironmentPreparedEvent()"]
  a34e7b09_f065_7373_f4bc_df6d5d30ee39 -->|calls| 81d3722d_c4b6_44b8_92ad_5eddf72c432c
  afc95fcb_81d4_79b0_719a_f1b54e2b3353["initializeSystem()"]
  afc95fcb_81d4_79b0_719a_f1b54e2b3353 -->|calls| 81d3722d_c4b6_44b8_92ad_5eddf72c432c
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  3953113f_ac92_ae03_16d9_2d51610bbe6e["getLoggingSystemProperties()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| 3953113f_ac92_ae03_16d9_2d51610bbe6e
  ce3696cf_77dd_9520_e3ee_8873df6cb400["apply()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| ce3696cf_77dd_9520_e3ee_8873df6cb400
  a6f8d6fe_82ec_e34a_3a37_284e7befffb7["applyToSystemProperties()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| a6f8d6fe_82ec_e34a_3a37_284e7befffb7
  4d269cc2_eb3a_cdbe_a0c6_b16786b02fed["LoggerGroups()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| 4d269cc2_eb3a_cdbe_a0c6_b16786b02fed
  045bb92a_b333_0377_ed7c_d616b20e585c["initializeEarlyLoggingLevel()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| 045bb92a_b333_0377_ed7c_d616b20e585c
  afc95fcb_81d4_79b0_719a_f1b54e2b3353["initializeSystem()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| afc95fcb_81d4_79b0_719a_f1b54e2b3353
  e06ef738_5468_1b36_b55d_7d5d424380b3["initializeFinalLoggingLevels()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| e06ef738_5468_1b36_b55d_7d5d424380b3
  f4e1cf64_bf89_e6b9_13ed_f9a2b3a10686["registerShutdownHookIfNecessary()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| f4e1cf64_bf89_e6b9_13ed_f9a2b3a10686
  c90d60de_6e4d_b157_5121_acbc78d427f0["get()"]
  81d3722d_c4b6_44b8_92ad_5eddf72c432c -->|calls| c90d60de_6e4d_b157_5121_acbc78d427f0
  style 81d3722d_c4b6_44b8_92ad_5eddf72c432c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/context/logging/LoggingApplicationListener.java lines 293–305

	protected void initialize(ConfigurableEnvironment environment, ClassLoader classLoader) {
		getLoggingSystemProperties(environment).apply();
		this.logFile = LogFile.get(environment);
		if (this.logFile != null) {
			this.logFile.applyToSystemProperties();
		}
		this.loggerGroups = new LoggerGroups(DEFAULT_GROUP_LOGGERS);
		initializeEarlyLoggingLevel(environment);
		Assert.state(this.loggingSystem != null, "loggingSystem is not set");
		initializeSystem(environment, this.loggingSystem, this.logFile);
		initializeFinalLoggingLevels(environment, this.loggingSystem);
		registerShutdownHookIfNecessary(environment, this.loggingSystem);
	}

Domain

Subdomains

Frequently Asked Questions

What does initialize() do?
initialize() is a function in the spring-boot codebase.
What does initialize() call?
initialize() calls 10 function(s): LoggerGroups, apply, applyToSystemProperties, get, getLoggingSystemProperties, initialize, initializeEarlyLoggingLevel, initializeFinalLoggingLevels, and 2 more.
What calls initialize()?
initialize() is called by 2 function(s): initializeSystem, onApplicationEnvironmentPreparedEvent.

Analyze Your Own Codebase

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

Try Supermodel Free