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

getLoggerConfigurationWithResetLevelReturnsNull() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

	@Test
	void getLoggerConfigurationWithResetLevelReturnsNull() {
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		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).isNull();
	}

Domain

Subdomains

Frequently Asked Questions

What does getLoggerConfigurationWithResetLevelReturnsNull() do?
getLoggerConfigurationWithResetLevelReturnsNull() is a function in the spring-boot codebase.
What does getLoggerConfigurationWithResetLevelReturnsNull() call?
getLoggerConfigurationWithResetLevelReturnsNull() 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