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

setLevel() — spring-boot Function Reference

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

Function java GradlePlugin RunTasks calls 4 called by 1

Entity Profile

Dependency Diagram

graph TD
  87670a84_b8dc_53ae_ff52_d67f57f774e6["setLevel()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51["loggingThatUsesJulIsCaptured()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| 87670a84_b8dc_53ae_ff52_d67f57f774e6
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  87670a84_b8dc_53ae_ff52_d67f57f774e6 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  87670a84_b8dc_53ae_ff52_d67f57f774e6 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"]
  87670a84_b8dc_53ae_ff52_d67f57f774e6 -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5
  eb70c58c_f118_cc50_2b70_0b13761cba5c["toString()"]
  87670a84_b8dc_53ae_ff52_d67f57f774e6 -->|calls| eb70c58c_f118_cc50_2b70_0b13761cba5c
  style 87670a84_b8dc_53ae_ff52_d67f57f774e6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void setLevel(CapturedOutput output) {
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.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.
What calls setLevel()?
setLevel() is called by 1 function(s): loggingThatUsesJulIsCaptured.

Analyze Your Own Codebase

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

Try Supermodel Free