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

getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  7b88629f_84c6_8670_788f_0e60e3188263["getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  7b88629f_84c6_8670_788f_0e60e3188263 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  9519ed59_465e_41a6_0d10_16e0e71a34a1["getLoggerConfiguration()"]
  7b88629f_84c6_8670_788f_0e60e3188263 -->|calls| 9519ed59_465e_41a6_0d10_16e0e71a34a1
  e19376dd_50cc_d749_9a96_43dc4f39358a["LoggerConfiguration()"]
  7b88629f_84c6_8670_788f_0e60e3188263 -->|calls| e19376dd_50cc_d749_9a96_43dc4f39358a
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  7b88629f_84c6_8670_788f_0e60e3188263 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"]
  7b88629f_84c6_8670_788f_0e60e3188263 -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5
  style 7b88629f_84c6_8670_788f_0e60e3188263 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() {
		LoggerContext loggerContext = this.loggingSystem.getLoggerContext();
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		loggerContext.getConfiguration()
			.addLogger("com.example.test",
					new LoggerConfig("com.example.test", org.apache.logging.log4j.Level.INFO, false));
		this.loggingSystem.setLogLevel("com.example", LogLevel.WARN);
		this.loggingSystem.setLogLevel("com.example.test", LogLevel.DEBUG);
		LoggerConfiguration configuration = this.loggingSystem.getLoggerConfiguration("com.example.test");
		assertThat(configuration)
			.isEqualTo(new LoggerConfiguration("com.example.test", LogLevel.DEBUG, LogLevel.DEBUG));
		this.loggingSystem.setLogLevel("com.example.test", null);
		LoggerConfiguration updatedConfiguration = this.loggingSystem.getLoggerConfiguration("com.example.test");
		assertThat(updatedConfiguration)
			.isEqualTo(new LoggerConfiguration("com.example.test", LogLevel.WARN, LogLevel.WARN));
	}

Domain

Subdomains

Frequently Asked Questions

What does getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() do?
getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() is a function in the spring-boot codebase.
What does getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() call?
getLoggerConfigurationWithResetLevelWhenAlreadyConfiguredReturnsParentConfiguredLevel() calls 5 function(s): LoggerConfiguration, beforeInitialize, getLoggerConfiguration, initialize, setLogLevel.

Analyze Your Own Codebase

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

Try Supermodel Free