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

initializeAttachesEnvironmentToLoggerContext() — spring-boot Function Reference

Architecture documentation for the initializeAttachesEnvironmentToLoggerContext() function in Log4J2LoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  51637017_36a0_cb73_af3f_028b1d509858["initializeAttachesEnvironmentToLoggerContext()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  51637017_36a0_cb73_af3f_028b1d509858 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"]
  51637017_36a0_cb73_af3f_028b1d509858 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  51637017_36a0_cb73_af3f_028b1d509858 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  style 51637017_36a0_cb73_af3f_028b1d509858 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 474–481

	@Test
	void initializeAttachesEnvironmentToLoggerContext() {
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		LoggerContext loggerContext = this.loggingSystem.getLoggerContext();
		Environment environment = Log4J2LoggingSystem.getEnvironment(loggerContext);
		assertThat(environment).isSameAs(this.environment);
	}

Domain

Subdomains

Frequently Asked Questions

What does initializeAttachesEnvironmentToLoggerContext() do?
initializeAttachesEnvironmentToLoggerContext() is a function in the spring-boot codebase.
What does initializeAttachesEnvironmentToLoggerContext() call?
initializeAttachesEnvironmentToLoggerContext() calls 3 function(s): beforeInitialize, getEnvironment, initialize.

Analyze Your Own Codebase

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

Try Supermodel Free