setLevel() — spring-boot Function Reference
Architecture documentation for the setLevel() function in JavaLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 2cacdadf_f287_27a2_f92b_8febd5d71afd["setLevel()"] 355dee33_1710_13ab_c47a_04ee99a3425b["resetLogger()"] 355dee33_1710_13ab_c47a_04ee99a3425b -->|calls| 2cacdadf_f287_27a2_f92b_8febd5d71afd bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"] 2cacdadf_f287_27a2_f92b_8febd5d71afd -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1 7717cdc8_e256_829d_da23_be6602ac541c["getInitializationContext()"] 2cacdadf_f287_27a2_f92b_8febd5d71afd -->|calls| 7717cdc8_e256_829d_da23_be6602ac541c 501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"] 2cacdadf_f287_27a2_f92b_8febd5d71afd -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264 121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"] 2cacdadf_f287_27a2_f92b_8febd5d71afd -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5 6d39334e_8bea_7b63_e7f8_65591a5e4037["toString()"] 2cacdadf_f287_27a2_f92b_8febd5d71afd -->|calls| 6d39334e_8bea_7b63_e7f8_65591a5e4037 style 2cacdadf_f287_27a2_f92b_8febd5d71afd fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/java/JavaLoggingSystemTests.java lines 152–160
@Test
void setLevel(CapturedOutput output) {
this.loggingSystem.beforeInitialize();
this.loggingSystem.initialize(getInitializationContext(), null, null);
this.logger.fine("Hello");
this.loggingSystem.setLogLevel("org.springframework.boot", LogLevel.DEBUG);
this.logger.fine("Hello");
assertThat(StringUtils.countOccurrencesOf(output.toString(), "Hello")).isOne();
}
Domain
Subdomains
Called By
- resetLogger()
Source
Frequently Asked Questions
What does setLevel() do?
setLevel() is a function in the spring-boot codebase.
What does setLevel() call?
setLevel() calls 5 function(s): beforeInitialize, getInitializationContext, initialize, setLogLevel, toString.
What calls setLevel()?
setLevel() is called by 1 function(s): resetLogger.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free