logFileRegisteredInTheContextWhenApplicable() — spring-boot Function Reference
Architecture documentation for the logFileRegisteredInTheContextWhenApplicable() function in LoggingApplicationListenerIntegrationTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD a967c565_3137_222a_1da8_bb27e9fc105e["logFileRegisteredInTheContextWhenApplicable()"] 67bae297_b590_f5e5_2666_5d557e3b57b1["SpringApplicationBuilder()"] a967c565_3137_222a_1da8_bb27e9fc105e -->|calls| 67bae297_b590_f5e5_2666_5d557e3b57b1 96180309_d35f_64e9_f339_53aa62a53500["web()"] a967c565_3137_222a_1da8_bb27e9fc105e -->|calls| 96180309_d35f_64e9_f339_53aa62a53500 94e71749_900c_a3ee_880d_8d0e95c538e4["properties()"] a967c565_3137_222a_1da8_bb27e9fc105e -->|calls| 94e71749_900c_a3ee_880d_8d0e95c538e4 3613e214_49bf_015b_c43f_7f8a1274fb0b["run()"] a967c565_3137_222a_1da8_bb27e9fc105e -->|calls| 3613e214_49bf_015b_c43f_7f8a1274fb0b style a967c565_3137_222a_1da8_bb27e9fc105e fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerIntegrationTests.java lines 67–81
@Test
void logFileRegisteredInTheContextWhenApplicable(@TempDir File tempDir) {
String logFile = new File(tempDir, "test.log").getAbsolutePath();
try (ConfigurableApplicationContext context = new SpringApplicationBuilder(SampleService.class)
.web(WebApplicationType.NONE)
.properties("logging.file.name=" + logFile)
.run()) {
SampleService service = context.getBean(SampleService.class);
assertThat(service.logFile).isNotNull();
assertThat(service.logFile).hasToString(logFile);
}
finally {
System.clearProperty(LoggingSystemProperty.LOG_FILE.getEnvironmentVariableName());
}
}
Domain
Subdomains
Source
Frequently Asked Questions
What does logFileRegisteredInTheContextWhenApplicable() do?
logFileRegisteredInTheContextWhenApplicable() is a function in the spring-boot codebase.
What does logFileRegisteredInTheContextWhenApplicable() call?
logFileRegisteredInTheContextWhenApplicable() calls 4 function(s): SpringApplicationBuilder, properties, run, web.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free