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

newBuilder() — spring-boot Function Reference

Architecture documentation for the newBuilder() function in StructuredLogLayoutTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  1473fa7f_47e1_1e83_c632_254d7767dbb6["newBuilder()"]
  81e94069_9ce0_5b7e_dff6_62e19f157a1f["shouldSupportEcsCommonFormat()"]
  81e94069_9ce0_5b7e_dff6_62e19f157a1f -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  b715ce9f_3906_69c4_0cdd_0a806dc92fcf["shouldOutputNestedAdditionalEcsJson()"]
  b715ce9f_3906_69c4_0cdd_0a806dc92fcf -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  b8f6b4a8_baf3_6d2c_48b7_6d09641cacb3["shouldSupportLogstashCommonFormat()"]
  b8f6b4a8_baf3_6d2c_48b7_6d09641cacb3 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  e8535688_acc3_6624_d585_e90ee9ec5393["shouldSupportGelfCommonFormat()"]
  e8535688_acc3_6624_d585_e90ee9ec5393 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  29ef5259_4b31_e6ee_6aaf_9925204a8697["shouldSupportCustomFormat()"]
  29ef5259_4b31_e6ee_6aaf_9925204a8697 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  cabda6b2_644f_b467_c9bc_65fbe41c4eab["shouldInjectCustomFormatConstructorParameters()"]
  cabda6b2_644f_b467_c9bc_65fbe41c4eab -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  50b1343f_084f_88a0_bcec_97789150a261["shouldCheckTypeArgument()"]
  50b1343f_084f_88a0_bcec_97789150a261 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  02a7645f_3bab_c6d2_4201_30524785e937["shouldCheckTypeArgumentWithRawType()"]
  02a7645f_3bab_c6d2_4201_30524785e937 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  883c31dd_8c13_09b1_fbce_21d78e323a91["shouldFailIfNoCommonOrCustomFormatIsSet()"]
  883c31dd_8c13_09b1_fbce_21d78e323a91 -->|calls| 1473fa7f_47e1_1e83_c632_254d7767dbb6
  style 1473fa7f_47e1_1e83_c632_254d7767dbb6 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/StructuredLogLayoutTests.java lines 146–150

	private Builder newBuilder() {
		Builder builder = StructuredLogLayout.newBuilder();
		ReflectionTestUtils.setField(builder, "loggerContext", this.loggerContext);
		return builder;
	}

Domain

Subdomains

Called By

  • shouldCheckTypeArgument()
  • shouldCheckTypeArgumentWithRawType()
  • shouldFailIfNoCommonOrCustomFormatIsSet()
  • shouldInjectCustomFormatConstructorParameters()
  • shouldOutputNestedAdditionalEcsJson()
  • shouldSupportCustomFormat()
  • shouldSupportEcsCommonFormat()
  • shouldSupportGelfCommonFormat()
  • shouldSupportLogstashCommonFormat()

Frequently Asked Questions

What does newBuilder() do?
newBuilder() is a function in the spring-boot codebase.
What calls newBuilder()?
newBuilder() is called by 9 function(s): shouldCheckTypeArgument, shouldCheckTypeArgumentWithRawType, shouldFailIfNoCommonOrCustomFormatIsSet, shouldInjectCustomFormatConstructorParameters, shouldOutputNestedAdditionalEcsJson, shouldSupportCustomFormat, shouldSupportEcsCommonFormat, shouldSupportGelfCommonFormat, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free