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

correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  b1d4f9fa_4afc_cd78_3277_ec08b4a0cbab["correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent()"]
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  b1d4f9fa_4afc_cd78_3277_ec08b4a0cbab -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  cd4620eb_deae_3575_f645_e33d9aacf415["of()"]
  b1d4f9fa_4afc_cd78_3277_ec08b4a0cbab -->|calls| cd4620eb_deae_3575_f645_e33d9aacf415
  599de821_15df_43cf_ef7e_1637f660f37b["getLineWithText()"]
  b1d4f9fa_4afc_cd78_3277_ec08b4a0cbab -->|calls| 599de821_15df_43cf_ef7e_1637f660f37b
  style b1d4f9fa_4afc_cd78_3277_ec08b4a0cbab fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent(CapturedOutput output) {
		this.environment.setProperty(LoggingSystem.EXPECT_CORRELATION_ID_PROPERTY, "false");
		initialize(this.initializationContext, null, null);
		MDC.setContextMap(Map.of("traceId", "01234567890123456789012345678901", "spanId", "0123456789012345"));
		this.logger.info("Hello world");
		assertThat(getLineWithText(output, "Hello world")).doesNotContain("0123456789012345");
	}

Domain

Subdomains

Frequently Asked Questions

What does correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent() do?
correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent() is a function in the spring-boot codebase.
What does correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent() call?
correlationLoggingToConsoleWhenExpectCorrelationIdFalseAndMdcContent() calls 3 function(s): getLineWithText, initialize, of.

Analyze Your Own Codebase

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

Try Supermodel Free