setLevelToNull() — spring-boot Function Reference
Architecture documentation for the setLevelToNull() function in Log4J2LoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 33703847_d0f8_a632_1dea_e8d8c3f67cc9["setLevelToNull()"] bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"] 33703847_d0f8_a632_1dea_e8d8c3f67cc9 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1 501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"] 33703847_d0f8_a632_1dea_e8d8c3f67cc9 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264 121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"] 33703847_d0f8_a632_1dea_e8d8c3f67cc9 -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5 eb70c58c_f118_cc50_2b70_0b13761cba5c["toString()"] 33703847_d0f8_a632_1dea_e8d8c3f67cc9 -->|calls| eb70c58c_f118_cc50_2b70_0b13761cba5c style 33703847_d0f8_a632_1dea_e8d8c3f67cc9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 193–203
@Test
void setLevelToNull(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");
this.loggingSystem.setLogLevel("org.springframework.boot", null);
this.logger.debug("Hello");
assertThat(StringUtils.countOccurrencesOf(output.toString(), "Hello")).isOne();
}
Domain
Subdomains
Source
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