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

getLoggerConfigurationsShouldReturnAllLoggers() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf["getLoggerConfigurationsShouldReturnAllLoggers()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  6c006e78_8286_ff92_0fd4_9d27c76ce681["getLoggerConfigurations()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 6c006e78_8286_ff92_0fd4_9d27c76ce681
  e4f244ff_d2d9_4c71_dfdf_07be83ac3122["put()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| e4f244ff_d2d9_4c71_dfdf_07be83ac3122
  7248f06e_800c_ea8c_c57e_f865b5def84a["getConfiguredLevel()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 7248f06e_800c_ea8c_c57e_f865b5def84a
  7374376e_29bd_61d5_51c6_0072a6429baa["assertIsPresent()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 7374376e_29bd_61d5_51c6_0072a6429baa
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  dfad5438_2934_8c95_2cc5_2a619cfd3204["get()"]
  de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf -->|calls| dfad5438_2934_8c95_2cc5_2a619cfd3204
  style de1a14d2_0ee8_1aeb_1686_e1a539fe9eaf fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void getLoggerConfigurationsShouldReturnAllLoggers() {
		this.loggingSystem.getLoggerContext()
			.getLogger("org.springframework.boot.logging.log4j2.Log4J2LoggingSystemTests$Nested");
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		this.loggingSystem.setLogLevel(getClass().getName(), LogLevel.DEBUG);
		List<LoggerConfiguration> configurations = this.loggingSystem.getLoggerConfigurations();
		assertThat(configurations).isNotEmpty();
		assertThat(configurations.get(0).getName()).isEqualTo(LoggingSystem.ROOT_LOGGER_NAME);
		Map<String, LogLevel> loggers = new LinkedHashMap<>();
		configurations.forEach((logger) -> loggers.put(logger.getName(), logger.getConfiguredLevel()));
		assertIsPresent("org", loggers, null);
		assertIsPresent("org.springframework.boot.logging.log4j2", loggers, null);
		assertIsPresent("org.springframework.boot.logging.log4j2.Log4J2LoggingSystemTests", loggers, LogLevel.DEBUG);
		assertIsPresent("org.springframework.boot.logging.log4j2.Log4J2LoggingSystemTests$Nested", loggers, null);
	}

Domain

Subdomains

Frequently Asked Questions

What does getLoggerConfigurationsShouldReturnAllLoggers() do?
getLoggerConfigurationsShouldReturnAllLoggers() is a function in the spring-boot codebase.
What does getLoggerConfigurationsShouldReturnAllLoggers() call?
getLoggerConfigurationsShouldReturnAllLoggers() calls 9 function(s): assertIsPresent, beforeInitialize, get, getConfiguredLevel, getLoggerConfigurations, getName, initialize, put, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free