systemPropertiesAreSetForLoggingConfiguration() — spring-boot Function Reference
Architecture documentation for the systemPropertiesAreSetForLoggingConfiguration() function in LoggingApplicationListenerTests.java from the spring-boot codebase.
Entity Profile
Dependency Diagram
graph TD 98af55cc_a953_5eaf_c51e_80070ddacd47["systemPropertiesAreSetForLoggingConfiguration()"] e4941a37_d532_8edb_200f_24a620639c51["addPropertiesToEnvironment()"] 98af55cc_a953_5eaf_c51e_80070ddacd47 -->|calls| e4941a37_d532_8edb_200f_24a620639c51 2708db62_8b10_9bf2_e348_171895b093f2["initialize()"] 98af55cc_a953_5eaf_c51e_80070ddacd47 -->|calls| 2708db62_8b10_9bf2_e348_171895b093f2 a74a6404_ac0b_ef50_4554_48366dd90b97["getEnvironment()"] 98af55cc_a953_5eaf_c51e_80070ddacd47 -->|calls| a74a6404_ac0b_ef50_4554_48366dd90b97 49a45454_f203_2fd5_2d77_322abb416244["getClassLoader()"] 98af55cc_a953_5eaf_c51e_80070ddacd47 -->|calls| 49a45454_f203_2fd5_2d77_322abb416244 fa6de724_885f_0a05_6b1b_5697fdfbd981["getSystemProperty()"] 98af55cc_a953_5eaf_c51e_80070ddacd47 -->|calls| fa6de724_885f_0a05_6b1b_5697fdfbd981 style 98af55cc_a953_5eaf_c51e_80070ddacd47 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
core/spring-boot/src/test/java/org/springframework/boot/context/logging/LoggingApplicationListenerTests.java lines 496–510
@Test
void systemPropertiesAreSetForLoggingConfiguration() {
addPropertiesToEnvironment(this.context, "logging.exception-conversion-word=conversion",
"logging.file.name=" + this.logFile, "logging.file.path=path", "logging.pattern.console=console",
"logging.pattern.file=file", "logging.pattern.level=level", "logging.pattern.correlation=correlation",
"logging.pattern.rolling-file-name=my.log.%d{yyyyMMdd}.%i.gz");
this.listener.initialize(this.context.getEnvironment(), getClassLoader());
assertThat(getSystemProperty(LoggingSystemProperty.CONSOLE_PATTERN)).isEqualTo("console");
assertThat(getSystemProperty(LoggingSystemProperty.FILE_PATTERN)).isEqualTo("file");
assertThat(getSystemProperty(LoggingSystemProperty.EXCEPTION_CONVERSION_WORD)).isEqualTo("conversion");
assertThat(getSystemProperty(LoggingSystemProperty.LOG_FILE)).isEqualTo(this.logFile.getAbsolutePath());
assertThat(getSystemProperty(LoggingSystemProperty.LEVEL_PATTERN)).isEqualTo("level");
assertThat(getSystemProperty(LoggingSystemProperty.LOG_PATH)).isEqualTo("path");
assertThat(getSystemProperty(LoggingSystemProperty.PID)).isNotNull();
}
Domain
Subdomains
Source
Frequently Asked Questions
What does systemPropertiesAreSetForLoggingConfiguration() do?
systemPropertiesAreSetForLoggingConfiguration() is a function in the spring-boot codebase.
What does systemPropertiesAreSetForLoggingConfiguration() call?
systemPropertiesAreSetForLoggingConfiguration() calls 5 function(s): addPropertiesToEnvironment, getClassLoader, getEnvironment, getSystemProperty, initialize.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free