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

addStatus() — spring-boot Function Reference

Architecture documentation for the addStatus() function in SystemStatusListenerTests.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  f497f34a_773f_8281_9904_dcf0b29a6ad4["addStatus()"]
  ec39a533_d8fc_6c3e_5768_493929841e43["addStatusWithInfoLevelWhenNoDebugDoesNotPrint()"]
  ec39a533_d8fc_6c3e_5768_493929841e43 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  98018679_caf1_2231_e826_ee65ff45f6ea["addStatusWithWarningLevelWhenNoDebugPrintsToSystemErr()"]
  98018679_caf1_2231_e826_ee65ff45f6ea -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  09030084_15c1_4cb6_e9c4_a5d54fb757aa["addStatusWithErrorLevelWhenNoDebugPrintsToSystemErr()"]
  09030084_15c1_4cb6_e9c4_a5d54fb757aa -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  e8994baa_9f0a_9fab_b7f2_41e563041355["addStatusWithInfoLevelWhenDebugPrintsToSystemOut()"]
  e8994baa_9f0a_9fab_b7f2_41e563041355 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  e8ce7055_6f9c_cd97_edd1_6fbd3013ae45["addStatusWithWarningLevelWhenDebugPrintsToSystemOut()"]
  e8ce7055_6f9c_cd97_edd1_6fbd3013ae45 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  dd771257_43cf_9e39_2845_a7d04da653c0["addStatusWithErrorLevelWhenDebugPrintsToSystemOut()"]
  dd771257_43cf_9e39_2845_a7d04da653c0 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  3127dadb_8d81_053d_9e02_44ebe68e4522["shouldRetrospectivePrintStatusOnStartAndDebugIsDisabled()"]
  3127dadb_8d81_053d_9e02_44ebe68e4522 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  111c4d5a_8ba6_78b0_9f1a_e4f2285fdc63["shouldRetrospectivePrintStatusOnStartAndDebugIsEnabled()"]
  111c4d5a_8ba6_78b0_9f1a_e4f2285fdc63 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  22975559_3590_6721_e087_5ac966754814["shouldNotRetrospectivePrintWhenStatusIsOutdated()"]
  22975559_3590_6721_e087_5ac966754814 -->|calls| f497f34a_773f_8281_9904_dcf0b29a6ad4
  style f497f34a_773f_8281_9904_dcf0b29a6ad4 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/test/java/org/springframework/boot/logging/logback/SystemStatusListenerTests.java lines 133–138

	private void addStatus(boolean debug, Supplier<Status> statusFactory) {
		SystemStatusListener.addTo(this.loggerContext, debug);
		StatusListener listener = this.statusManager.getCopyOfStatusListenerList().get(0);
		assertThat(listener).extracting("context").isSameAs(this.loggerContext);
		listener.addStatusEvent(statusFactory.get());
	}

Domain

Subdomains

Called By

  • addStatusWithErrorLevelWhenDebugPrintsToSystemOut()
  • addStatusWithErrorLevelWhenNoDebugPrintsToSystemErr()
  • addStatusWithInfoLevelWhenDebugPrintsToSystemOut()
  • addStatusWithInfoLevelWhenNoDebugDoesNotPrint()
  • addStatusWithWarningLevelWhenDebugPrintsToSystemOut()
  • addStatusWithWarningLevelWhenNoDebugPrintsToSystemErr()
  • shouldNotRetrospectivePrintWhenStatusIsOutdated()
  • shouldRetrospectivePrintStatusOnStartAndDebugIsDisabled()
  • shouldRetrospectivePrintStatusOnStartAndDebugIsEnabled()

Frequently Asked Questions

What does addStatus() do?
addStatus() is a function in the spring-boot codebase.
What calls addStatus()?
addStatus() is called by 9 function(s): addStatusWithErrorLevelWhenDebugPrintsToSystemOut, addStatusWithErrorLevelWhenNoDebugPrintsToSystemErr, addStatusWithInfoLevelWhenDebugPrintsToSystemOut, addStatusWithInfoLevelWhenNoDebugDoesNotPrint, addStatusWithWarningLevelWhenDebugPrintsToSystemOut, addStatusWithWarningLevelWhenNoDebugPrintsToSystemErr, shouldNotRetrospectivePrintWhenStatusIsOutdated, shouldRetrospectivePrintStatusOnStartAndDebugIsDisabled, and 1 more.

Analyze Your Own Codebase

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

Try Supermodel Free