Home / Function/ customExceptionConversionWord() — spring-boot Function Reference

customExceptionConversionWord() — spring-boot Function Reference

Architecture documentation for the customExceptionConversionWord() function in LogbackLoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  4cd69544_b3ea_d2fb_a584_a2a8c26d29ee["customExceptionConversionWord()"]
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  4cd69544_b3ea_d2fb_a584_a2a8c26d29ee -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  4cd69544_b3ea_d2fb_a584_a2a8c26d29ee -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  4cd69544_b3ea_d2fb_a584_a2a8c26d29ee -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  4cd69544_b3ea_d2fb_a584_a2a8c26d29ee -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  style 4cd69544_b3ea_d2fb_a584_a2a8c26d29ee fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/LogbackLoggingSystemTests.java lines 538–553

	@Test
	void customExceptionConversionWord(CapturedOutput output) {
		System.setProperty(LoggingSystemProperty.EXCEPTION_CONVERSION_WORD.getEnvironmentVariableName(), "%ex");
		try {
			this.loggingSystem.beforeInitialize();
			this.logger.info("Hidden");
			initialize(this.initializationContext, null, getLogFile(null, tmpDir()));
			this.logger.warn("Expected exception", new RuntimeException("Expected", new RuntimeException("Cause")));
			String fileContents = contentOf(new File(tmpDir() + "/spring.log"));
			assertThat(fileContents).contains("java.lang.RuntimeException: Expected").doesNotContain("Wrapped by:");
			assertThat(output).contains("java.lang.RuntimeException: Expected").doesNotContain("Wrapped by:");
		}
		finally {
			System.clearProperty(LoggingSystemProperty.EXCEPTION_CONVERSION_WORD.getEnvironmentVariableName());
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does customExceptionConversionWord() do?
customExceptionConversionWord() is a function in the spring-boot codebase.
What does customExceptionConversionWord() call?
customExceptionConversionWord() calls 4 function(s): beforeInitialize, getLogFile, initialize, tmpDir.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free