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

addLogFileProperty() — spring-boot Function Reference

Architecture documentation for the addLogFileProperty() function in LoggingApplicationListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  bab8be36_707c_90dc_862a_e4b4bca29f0b["addLogFileProperty()"]
  e4941a37_d532_8edb_200f_24a620639c51["addPropertiesToEnvironment()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| e4941a37_d532_8edb_200f_24a620639c51
  2708db62_8b10_9bf2_e348_171895b093f2["initialize()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| 2708db62_8b10_9bf2_e348_171895b093f2
  a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97
  49a45454_f203_2fd5_2d77_322abb416244["getClassLoader()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| 49a45454_f203_2fd5_2d77_322abb416244
  6d39334e_8bea_7b63_e7f8_65591a5e4037["toString()"]
  bab8be36_707c_90dc_862a_e4b4bca29f0b -->|calls| 6d39334e_8bea_7b63_e7f8_65591a5e4037
  style bab8be36_707c_90dc_862a_e4b4bca29f0b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 236–247

	@Test
	@WithNonDefaultXmlResource
	void addLogFileProperty() {
		addPropertiesToEnvironment(this.context, "logging.config=classpath:nondefault.xml",
				"logging.file.name=" + this.logFile);
		this.listener.initialize(this.context.getEnvironment(), getClassLoader());
		Log logger = LogFactory.getLog(LoggingApplicationListenerTests.class);
		String existingOutput = this.output.toString();
		logger.info("Hello world");
		String output = this.output.toString().substring(existingOutput.length()).trim();
		assertThat(output).startsWith(this.logFile.getAbsolutePath());
	}

Domain

Subdomains

Frequently Asked Questions

What does addLogFileProperty() do?
addLogFileProperty() is a function in the spring-boot codebase.
What does addLogFileProperty() call?
addLogFileProperty() calls 5 function(s): addPropertiesToEnvironment, getClassLoader, getEnvironment, initialize, toString.

Analyze Your Own Codebase

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

Try Supermodel Free