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

setLevelToNull() — spring-boot Function Reference

Architecture documentation for the setLevelToNull() function in LogbackLoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  c06f0ec7_9b55_a65d_df17_51b9549422eb["setLevelToNull()"]
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  c06f0ec7_9b55_a65d_df17_51b9549422eb -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  c06f0ec7_9b55_a65d_df17_51b9549422eb -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"]
  c06f0ec7_9b55_a65d_df17_51b9549422eb -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5
  eb70c58c_f118_cc50_2b70_0b13761cba5c["toString()"]
  c06f0ec7_9b55_a65d_df17_51b9549422eb -->|calls| eb70c58c_f118_cc50_2b70_0b13761cba5c
  style c06f0ec7_9b55_a65d_df17_51b9549422eb fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 266–276

	@Test
	void setLevelToNull(CapturedOutput output) {
		this.loggingSystem.beforeInitialize();
		initialize(this.initializationContext, null, null);
		this.logger.debug("Hello");
		this.loggingSystem.setLogLevel("org.springframework.boot", LogLevel.DEBUG);
		this.logger.debug("Hello");
		this.loggingSystem.setLogLevel("org.springframework.boot", null);
		this.logger.debug("Hello");
		assertThat(StringUtils.countOccurrencesOf(output.toString(), "Hello")).isOne();
	}

Domain

Subdomains

Frequently Asked Questions

What does setLevelToNull() do?
setLevelToNull() is a function in the spring-boot codebase.
What does setLevelToNull() call?
setLevelToNull() calls 4 function(s): beforeInitialize, initialize, setLogLevel, toString.

Analyze Your Own Codebase

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

Try Supermodel Free