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

getEnvironmentWhenUsingFile() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  a786d48a_fa53_a610_0c90_b958846eb616["getEnvironmentWhenUsingFile()"]
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  a786d48a_fa53_a610_0c90_b958846eb616 -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  a786d48a_fa53_a610_0c90_b958846eb616 -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  a786d48a_fa53_a610_0c90_b958846eb616 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  a786d48a_fa53_a610_0c90_b958846eb616 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  a786d48a_fa53_a610_0c90_b958846eb616 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  style a786d48a_fa53_a610_0c90_b958846eb616 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	@WithNonDefaultXmlResource
	void getEnvironmentWhenUsingFile() {
		this.loggingSystem.beforeInitialize();
		LogFile logFile = getLogFile(tmpDir() + "/example.log", null, false);
		initialize(this.initializationContext, "classpath:nondefault.xml", logFile);
		assertThat(this.logger.getLoggerContext().getObject(Environment.class.getName())).isSameAs(this.environment);
	}

Domain

Subdomains

Frequently Asked Questions

What does getEnvironmentWhenUsingFile() do?
getEnvironmentWhenUsingFile() is a function in the spring-boot codebase.
What does getEnvironmentWhenUsingFile() call?
getEnvironmentWhenUsingFile() calls 5 function(s): beforeInitialize, getLogFile, getName, initialize, tmpDir.

Analyze Your Own Codebase

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

Try Supermodel Free