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

encode() — spring-boot Function Reference

Architecture documentation for the encode() function in StructuredLogEncoderTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  2d957c57_b84e_0a00_6a1b_6d459a009b9e["encode()"]
  e8059c46_98c4_fdd4_12a8_f1b7a8897f7c["shouldSupportEcsCommonFormat()"]
  e8059c46_98c4_fdd4_12a8_f1b7a8897f7c -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  f5bee308_c755_4e92_e042_3f3dc96f6d65["shouldOutputNestedAdditionalEcsJson()"]
  f5bee308_c755_4e92_e042_3f3dc96f6d65 -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  66e020e7_6d1b_1439_6d42_51014c3c1ef3["shouldSupportLogstashCommonFormat()"]
  66e020e7_6d1b_1439_6d42_51014c3c1ef3 -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  611bc06c_ade1_ce8c_d7c2_677c498820f3["shouldSupportGelfCommonFormat()"]
  611bc06c_ade1_ce8c_d7c2_677c498820f3 -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  dd993dd7_9fc4_bf78_db2f_a8c24c9b2d93["shouldSupportCustomFormat()"]
  dd993dd7_9fc4_bf78_db2f_a8c24c9b2d93 -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  429418aa_c92f_9b7b_c415_f3912911e152["shouldInjectCustomFormatConstructorParameters()"]
  429418aa_c92f_9b7b_c415_f3912911e152 -->|calls| 2d957c57_b84e_0a00_6a1b_6d459a009b9e
  style 2d957c57_b84e_0a00_6a1b_6d459a009b9e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/StructuredLogEncoderTests.java lines 175–177

	private String encode(LoggingEvent event) {
		return new String(this.encoder.encode(event), StandardCharsets.UTF_8);
	}

Domain

Subdomains

Called By

  • shouldInjectCustomFormatConstructorParameters()
  • shouldOutputNestedAdditionalEcsJson()
  • shouldSupportCustomFormat()
  • shouldSupportEcsCommonFormat()
  • shouldSupportGelfCommonFormat()
  • shouldSupportLogstashCommonFormat()

Frequently Asked Questions

What does encode() do?
encode() is a function in the spring-boot codebase.
What calls encode()?
encode() is called by 6 function(s): shouldInjectCustomFormatConstructorParameters, shouldOutputNestedAdditionalEcsJson, shouldSupportCustomFormat, shouldSupportEcsCommonFormat, shouldSupportGelfCommonFormat, shouldSupportLogstashCommonFormat.

Analyze Your Own Codebase

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

Try Supermodel Free