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

setLevel() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

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

	@Test
	void setLevel(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");
		assertThat(StringUtils.countOccurrencesOf(output.toString(), "Hello")).isOne();
	}

Domain

Subdomains

Frequently Asked Questions

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