shouldRespectFileThreshold() — spring-boot Function Reference
Architecture documentation for the shouldRespectFileThreshold() function in LogbackLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 800b94d4_cb36_8ee0_25b7_7e6c41f184b9["shouldRespectFileThreshold()"] 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"] 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38 bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"] 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e 13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"] 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e cd4620eb_deae_3575_f645_e33d9aacf415["of()"] 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 -->|calls| cd4620eb_deae_3575_f645_e33d9aacf415 501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"] 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264 style 800b94d4_cb36_8ee0_25b7_7e6c41f184b9 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 1043–1054
@Test
void shouldRespectFileThreshold() {
this.environment.setProperty("logging.threshold.file", "warn");
this.loggingSystem.beforeInitialize();
initialize(this.initializationContext, null, getLogFile(null, tmpDir()));
this.logger.info("Some info message");
this.logger.warn("Some warn message");
Path file = Path.of(tmpDir(), "spring.log");
assertThat(file).content(StandardCharsets.UTF_8)
.doesNotContain("Some info message")
.contains("Some warn message");
}
Domain
Subdomains
Source
Frequently Asked Questions
What does shouldRespectFileThreshold() do?
shouldRespectFileThreshold() is a function in the spring-boot codebase.
What does shouldRespectFileThreshold() call?
shouldRespectFileThreshold() calls 5 function(s): beforeInitialize, getLogFile, initialize, of, tmpDir.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free