withFile() — spring-boot Function Reference
Architecture documentation for the withFile() function in JavaLoggingSystemTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 3366da7f_8219_e533_2df4_3787c22d13c4["withFile()"] 13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"] 3366da7f_8219_e533_2df4_3787c22d13c4 -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"] 3366da7f_8219_e533_2df4_3787c22d13c4 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1 7717cdc8_e256_829d_da23_be6602ac541c["getInitializationContext()"] 3366da7f_8219_e533_2df4_3787c22d13c4 -->|calls| 7717cdc8_e256_829d_da23_be6602ac541c bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"] 3366da7f_8219_e533_2df4_3787c22d13c4 -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e 501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"] 3366da7f_8219_e533_2df4_3787c22d13c4 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264 style 3366da7f_8219_e533_2df4_3787c22d13c4 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/logging/java/JavaLoggingSystemTests.java lines 93–106
@Test
void withFile(CapturedOutput output) {
File temp = new File(tmpDir());
File[] logFiles = temp.listFiles(SPRING_LOG_FILTER);
for (File file : logFiles) {
file.delete();
}
this.loggingSystem.beforeInitialize();
this.logger.info("Hidden");
this.loggingSystem.initialize(getInitializationContext(), null, getLogFile(null, tmpDir()));
this.logger.info("Hello world");
assertThat(output).contains("Hello world").doesNotContain("Hidden");
assertThat(temp.listFiles(SPRING_LOG_FILTER)).isNotEmpty();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does withFile() do?
withFile() is a function in the spring-boot codebase.
What does withFile() call?
withFile() calls 5 function(s): beforeInitialize, getInitializationContext, getLogFile, initialize, tmpDir.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free