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

customCharset() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  fa97fec4_e873_fb42_c10a_82b35e5d57da["customCharset()"]
  1c70a669_b986_1d08_11e5_0f5b58ad7e27["LoggingInitializationContext()"]
  fa97fec4_e873_fb42_c10a_82b35e5d57da -->|calls| 1c70a669_b986_1d08_11e5_0f5b58ad7e27
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  fa97fec4_e873_fb42_c10a_82b35e5d57da -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  fa97fec4_e873_fb42_c10a_82b35e5d57da -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  fa97fec4_e873_fb42_c10a_82b35e5d57da -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  c80c1033_8e67_d01d_edf8_dfc47ad6029a["getConsoleAppender()"]
  fa97fec4_e873_fb42_c10a_82b35e5d57da -->|calls| c80c1033_8e67_d01d_edf8_dfc47ad6029a
  style fa97fec4_e873_fb42_c10a_82b35e5d57da fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void customCharset() {
		this.environment.setProperty("logging.charset.console", "UTF-16");
		LoggingInitializationContext loggingInitializationContext = new LoggingInitializationContext(this.environment);
		File file = new File(tmpDir(), "logback-test.log");
		LogFile logFile = getLogFile(file.getPath(), null);
		initialize(loggingInitializationContext, null, logFile);
		this.logger.info("Hello world");
		LayoutWrappingEncoder<?> encoder = (LayoutWrappingEncoder<?>) getConsoleAppender().getEncoder();
		assertThat(encoder.getCharset()).isEqualTo(StandardCharsets.UTF_16);
	}

Domain

Subdomains

Frequently Asked Questions

What does customCharset() do?
customCharset() is a function in the spring-boot codebase.
What does customCharset() call?
customCharset() calls 5 function(s): LoggingInitializationContext, getConsoleAppender, getLogFile, initialize, tmpDir.

Analyze Your Own Codebase

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

Try Supermodel Free