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

lowPriorityPropertySourceShouldNotOverrideRootLoggerConfig() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  3cba961c_2b9f_4103_5643_9f0287acdfb9["lowPriorityPropertySourceShouldNotOverrideRootLoggerConfig()"]
  a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"]
  3cba961c_2b9f_4103_5643_9f0287acdfb9 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97
  2708db62_8b10_9bf2_e348_171895b093f2["initialize()"]
  3cba961c_2b9f_4103_5643_9f0287acdfb9 -->|calls| 2708db62_8b10_9bf2_e348_171895b093f2
  49a45454_f203_2fd5_2d77_322abb416244["getClassLoader()"]
  3cba961c_2b9f_4103_5643_9f0287acdfb9 -->|calls| 49a45454_f203_2fd5_2d77_322abb416244
  style 3cba961c_2b9f_4103_5643_9f0287acdfb9 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void lowPriorityPropertySourceShouldNotOverrideRootLoggerConfig() {
		MutablePropertySources propertySources = this.context.getEnvironment().getPropertySources();
		propertySources
			.addFirst(new MapPropertySource("test1", Collections.singletonMap("logging.level.ROOT", "DEBUG")));
		propertySources.addLast(new MapPropertySource("test2", Collections.singletonMap("logging.level.root", "WARN")));
		this.listener.initialize(this.context.getEnvironment(), getClassLoader());
		this.logger.debug("testatdebug");
		assertThat(this.output).contains("testatdebug");
	}

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free