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

getEnvironment() — spring-boot Function Reference

Architecture documentation for the getEnvironment() function in Log4J2LoggingSystem.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 1 called by 3

Entity Profile

Dependency Diagram

graph TD
  ec28bceb_afae_dbcc_dc04_34cec403ab77["getEnvironment()"]
  d96e0984_c4d4_8c0c_f645_23c756d30e3c["initialize()"]
  d96e0984_c4d4_8c0c_f645_23c756d30e3c -->|calls| ec28bceb_afae_dbcc_dc04_34cec403ab77
  1713cec4_0f07_a26a_cf7f_ab9b57549a5a["load()"]
  1713cec4_0f07_a26a_cf7f_ab9b57549a5a -->|calls| ec28bceb_afae_dbcc_dc04_34cec403ab77
  83b19da4_a45e_2441_f89a_92502556674a["getOverrides()"]
  83b19da4_a45e_2441_f89a_92502556674a -->|calls| ec28bceb_afae_dbcc_dc04_34cec403ab77
  a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"]
  ec28bceb_afae_dbcc_dc04_34cec403ab77 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97
  style ec28bceb_afae_dbcc_dc04_34cec403ab77 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystem.java lines 513–515

	public static @Nullable Environment getEnvironment(@Nullable LoggerContext loggerContext) {
		return (Environment) ((loggerContext != null) ? loggerContext.getObject(ENVIRONMENT_KEY) : null);
	}

Domain

Subdomains

Frequently Asked Questions

What does getEnvironment() do?
getEnvironment() is a function in the spring-boot codebase.
What does getEnvironment() call?
getEnvironment() calls 1 function(s): getEnvironment.
What calls getEnvironment()?
getEnvironment() is called by 3 function(s): getOverrides, initialize, load.

Analyze Your Own Codebase

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

Try Supermodel Free