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

logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() — spring-boot Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  5543df44_33bd_a7c0_f67c_3ec1e90fdd0c["logbackSystemStatusListenerShouldBeRegisteredOnlyOnce()"]
  58d8d837_b5a1_09c5_cdb4_ff02e18c8c38["initialize()"]
  5543df44_33bd_a7c0_f67c_3ec1e90fdd0c -->|calls| 58d8d837_b5a1_09c5_cdb4_ff02e18c8c38
  bc937c1c_ec1c_7511_0eee_c35de09ea03e["getLogFile()"]
  5543df44_33bd_a7c0_f67c_3ec1e90fdd0c -->|calls| bc937c1c_ec1c_7511_0eee_c35de09ea03e
  13cca41d_e6d4_6c55_4166_597017d5c02e["tmpDir()"]
  5543df44_33bd_a7c0_f67c_3ec1e90fdd0c -->|calls| 13cca41d_e6d4_6c55_4166_597017d5c02e
  501f40c7_eea3_8197_664f_2a7d4a9c3264["beforeInitialize()"]
  5543df44_33bd_a7c0_f67c_3ec1e90fdd0c -->|calls| 501f40c7_eea3_8197_664f_2a7d4a9c3264
  style 5543df44_33bd_a7c0_f67c_3ec1e90fdd0c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

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

	@Test
	void logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() {
		this.loggingSystem.beforeInitialize();
		initialize(this.initializationContext, null, getLogFile(tmpDir() + "/tmp.log", null));
		LoggerContext loggerContext = this.logger.getLoggerContext();
		SystemStatusListener.addTo(loggerContext);
		SystemStatusListener.addTo(loggerContext, true);
		assertThat(loggerContext.getStatusManager().getCopyOfStatusListenerList()).satisfiesOnlyOnce((listener) -> {
			assertThat(listener).isInstanceOf(SystemStatusListener.class);
			assertThat(listener).hasFieldOrPropertyWithValue("debug", false);
		});
	}

Domain

Subdomains

Frequently Asked Questions

What does logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() do?
logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() is a function in the spring-boot codebase.
What does logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() call?
logbackSystemStatusListenerShouldBeRegisteredOnlyOnce() calls 4 function(s): beforeInitialize, getLogFile, initialize, tmpDir.

Analyze Your Own Codebase

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

Try Supermodel Free