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

apply() — spring-boot Function Reference

Architecture documentation for the apply() function in DefaultLogbackConfiguration.java from the spring-boot codebase.

Entity Profile

Dependency Diagram

graph TD
  e054e826_11dd_3879_65f9_feb7c805f5b8["apply()"]
  8a1d3028_5c85_bca1_5817_f2b88230c6de["defaults()"]
  e054e826_11dd_3879_65f9_feb7c805f5b8 -->|calls| 8a1d3028_5c85_bca1_5817_f2b88230c6de
  2cd855a3_035e_eeb0_b302_51263f6b4d0d["consoleAppender()"]
  e054e826_11dd_3879_65f9_feb7c805f5b8 -->|calls| 2cd855a3_035e_eeb0_b302_51263f6b4d0d
  31c60606_83c6_5f2b_7475_ce30de6e8b98["fileAppender()"]
  e054e826_11dd_3879_65f9_feb7c805f5b8 -->|calls| 31c60606_83c6_5f2b_7475_ce30de6e8b98
  eb70c58c_f118_cc50_2b70_0b13761cba5c["toString()"]
  e054e826_11dd_3879_65f9_feb7c805f5b8 -->|calls| eb70c58c_f118_cc50_2b70_0b13761cba5c
  style e054e826_11dd_3879_65f9_feb7c805f5b8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/logging/logback/DefaultLogbackConfiguration.java lines 85–101

	void apply(LogbackConfigurator config) {
		config.getConfigurationLock().lock();
		try {
			defaults(config);
			Appender<ILoggingEvent> consoleAppender = consoleAppender(config);
			if (this.logFile != null) {
				Appender<ILoggingEvent> fileAppender = fileAppender(config, this.logFile.toString());
				config.root(Level.INFO, consoleAppender, fileAppender);
			}
			else {
				config.root(Level.INFO, consoleAppender);
			}
		}
		finally {
			config.getConfigurationLock().unlock();
		}
	}

Domain

Subdomains

Calls

Frequently Asked Questions

What does apply() do?
apply() is a function in the spring-boot codebase.
What does apply() call?
apply() calls 4 function(s): consoleAppender, defaults, fileAppender, toString.

Analyze Your Own Codebase

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

Try Supermodel Free