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

testLevelPatternProperty() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  2256ef2f_5688_358c_dcbb_e72daf698349["testLevelPatternProperty()"]
  67c73d2a_3c49_cb13_cad8_ad1d094d73d9["LoggingSystemProperties()"]
  2256ef2f_5688_358c_dcbb_e72daf698349 -->|calls| 67c73d2a_3c49_cb13_cad8_ad1d094d73d9
  ce3696cf_77dd_9520_e3ee_8873df6cb400["apply()"]
  2256ef2f_5688_358c_dcbb_e72daf698349 -->|calls| ce3696cf_77dd_9520_e3ee_8873df6cb400
  1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"]
  2256ef2f_5688_358c_dcbb_e72daf698349 -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  2256ef2f_5688_358c_dcbb_e72daf698349 -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  599de821_15df_43cf_ef7e_1637f660f37b["getLineWithText()"]
  2256ef2f_5688_358c_dcbb_e72daf698349 -->|calls| 599de821_15df_43cf_ef7e_1637f660f37b
  style 2256ef2f_5688_358c_dcbb_e72daf698349 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void testLevelPatternProperty(CapturedOutput output) {
		this.environment.setProperty("logging.pattern.level", "X%clr(%p)X");
		new LoggingSystemProperties(this.environment).apply();
		LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext(this.environment);
		initialize(loggingInitializationContext, null, null);
		this.logger.info("Hello world");
		assertThat(getLineWithText(output, "Hello world")).contains("XINFOX");
	}

Domain

Subdomains

Frequently Asked Questions

What does testLevelPatternProperty() do?
testLevelPatternProperty() is a function in the spring-boot codebase.
What does testLevelPatternProperty() call?
testLevelPatternProperty() calls 5 function(s): LoggingInitializationContext, LoggingSystemProperties, apply, getLineWithText, initialize.

Analyze Your Own Codebase

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

Try Supermodel Free