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

createPrinterWhenStandardAppliesCustomizations() — spring-boot Function Reference

Architecture documentation for the createPrinterWhenStandardAppliesCustomizations() function in StructuredLoggingJsonPropertiesTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ec5d4b61_592c_6883_8b56_af017a7c7a2e["createPrinterWhenStandardAppliesCustomizations()"]
  0fd6408a_53ce_f78c_7f5b_9c878864dbe7["create()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| 0fd6408a_53ce_f78c_7f5b_9c878864dbe7
  67597706_c252_cead_f617_cf5b855b7034["StackTrace()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| 67597706_c252_cead_f617_cf5b855b7034
  3b4e3b1e_1ae7_bebd_e898_27e5d1892b68["withLineSeparator()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| 3b4e3b1e_1ae7_bebd_e898_27e5d1892b68
  c088fb00_ef06_1c30_8c91_c0eef0c70613["withoutLineNumbers()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| c088fb00_ef06_1c30_8c91_c0eef0c70613
  fc9c4e0e_8140_0604_ca49_18d7de34b808["createTestException()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| fc9c4e0e_8140_0604_ca49_18d7de34b808
  8f4e6d55_21ce_0098_2cc0_b01a51aedc1d["run()"]
  ec5d4b61_592c_6883_8b56_af017a7c7a2e -->|calls| 8f4e6d55_21ce_0098_2cc0_b01a51aedc1d
  style ec5d4b61_592c_6883_8b56_af017a7c7a2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/structured/StructuredLoggingJsonPropertiesTests.java lines 152–166

		@Test
		void createPrinterWhenStandardAppliesCustomizations() {
			Exception exception = TestException.create();
			StackTrace properties = new StackTrace(null, Root.FIRST, 300, 2, true, false);
			StandardStackTracePrinter printer = (StandardStackTracePrinter) properties.createPrinter();
			assertThat(printer).isNotNull();
			printer = printer.withLineSeparator("\n");
			String actual = TestException.withoutLineNumbers(printer.printStackTraceToString(exception));
			assertThat(actual).isEqualToNormalizingNewlines("""
					java.lang.RuntimeException: root
						at org.springframework.boot.logging.TestException.createTestException(TestException.java:NN)
						at org.springframework.boot.logging.TestException$CreatorThread.run(TestException.java:NN)
					Wrapped by: java.lang.RuntimeException: cause
						at org.springframework.boot.log...""");
		}

Domain

Subdomains

Frequently Asked Questions

What does createPrinterWhenStandardAppliesCustomizations() do?
createPrinterWhenStandardAppliesCustomizations() is a function in the spring-boot codebase.
What does createPrinterWhenStandardAppliesCustomizations() call?
createPrinterWhenStandardAppliesCustomizations() calls 6 function(s): StackTrace, create, createTestException, run, withLineSeparator, withoutLineNumbers.

Analyze Your Own Codebase

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

Try Supermodel Free