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

loggingThatUsesJulIsCaptured() — spring-boot Function Reference

Architecture documentation for the loggingThatUsesJulIsCaptured() function in Log4J2LoggingSystemTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  ebf03b09_6dc1_689a_e578_652c73b79e51["loggingThatUsesJulIsCaptured()"]
  bffa5cc2_2336_d219_9e81_a81a831f09b1["initialize()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| bffa5cc2_2336_d219_9e81_a81a831f09b1
  87670a84_b8dc_53ae_ff52_d67f57f774e6["setLevel()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| 87670a84_b8dc_53ae_ff52_d67f57f774e6
  5442b6c9_c948_65c9_3b32_df1993add6a2["getName()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| 5442b6c9_c948_65c9_3b32_df1993add6a2
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  121b7287_c247_a3cc_c719_79c9c639fbd5["setLogLevel()"]
  ebf03b09_6dc1_689a_e578_652c73b79e51 -->|calls| 121b7287_c247_a3cc_c719_79c9c639fbd5
  style ebf03b09_6dc1_689a_e578_652c73b79e51 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/log4j2/Log4J2LoggingSystemTests.java lines 289–299

	@Test
	void loggingThatUsesJulIsCaptured(CapturedOutput output) {
		String name = getClass().getName();
		this.loggingSystem.beforeInitialize();
		this.loggingSystem.initialize(this.initializationContext, null, null);
		this.loggingSystem.setLogLevel(name, LogLevel.TRACE);
		java.util.logging.Logger julLogger = java.util.logging.Logger.getLogger(name);
		julLogger.setLevel(java.util.logging.Level.INFO);
		julLogger.severe("Hello world");
		assertThat(output).contains("Hello world");
	}

Domain

Subdomains

Frequently Asked Questions

What does loggingThatUsesJulIsCaptured() do?
loggingThatUsesJulIsCaptured() is a function in the spring-boot codebase.
What does loggingThatUsesJulIsCaptured() call?
loggingThatUsesJulIsCaptured() calls 5 function(s): beforeInitialize, getName, initialize, setLevel, setLogLevel.

Analyze Your Own Codebase

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

Try Supermodel Free