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

switchOverAll() — spring-boot Function Reference

Architecture documentation for the switchOverAll() function in DeferredLogs.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e11ba548_51f3_397c_2672_4830f3c28c20["switchOverAll()"]
  88358e83_7de6_6ea8_c296_b3395039b46e["finish()"]
  88358e83_7de6_6ea8_c296_b3395039b46e -->|calls| e11ba548_51f3_397c_2672_4830f3c28c20
  e775247a_9016_b82a_5908_5487d55185f3["onApplicationEventWhenApplicationPreparedEventSwitchesLogs()"]
  e775247a_9016_b82a_5908_5487d55185f3 -->|calls| e11ba548_51f3_397c_2672_4830f3c28c20
  74bb13be_5ca9_b6e8_98c8_6888c1cf0560["onApplicationEventWhenApplicationFailedEventSwitchesLogs()"]
  74bb13be_5ca9_b6e8_98c8_6888c1cf0560 -->|calls| e11ba548_51f3_397c_2672_4830f3c28c20
  style e11ba548_51f3_397c_2672_4830f3c28c20 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/DeferredLogs.java lines 82–93

	public void switchOverAll() {
		synchronized (this.lines) {
			for (Line line : this.lines) {
				line.getLevel().log(line.getDestination(), line.getMessage(), line.getThrowable());
			}
			for (DeferredLog logger : this.loggers) {
				logger.switchOver();
			}
			this.lines.clear();
		}

	}

Domain

Subdomains

Frequently Asked Questions

What does switchOverAll() do?
switchOverAll() is a function in the spring-boot codebase.
What calls switchOverAll()?
switchOverAll() is called by 3 function(s): finish, onApplicationEventWhenApplicationFailedEventSwitchesLogs, onApplicationEventWhenApplicationPreparedEventSwitchesLogs.

Analyze Your Own Codebase

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

Try Supermodel Free