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

logStartupProfileInfo() — spring-boot Function Reference

Architecture documentation for the logStartupProfileInfo() function in SpringApplication.java from the spring-boot codebase.

Function java GradlePlugin AotProcessing calls 2 called by 1

Entity Profile

Dependency Diagram

graph TD
  fb48c3c9_a652_dd4c_a390_f9134a1b070d["logStartupProfileInfo()"]
  6effd0c4_0207_6697_e91b_d163c77a8757["prepareContext()"]
  6effd0c4_0207_6697_e91b_d163c77a8757 -->|calls| fb48c3c9_a652_dd4c_a390_f9134a1b070d
  84541f22_387a_4156_2ff4_e4c3755e1a97["getApplicationLog()"]
  fb48c3c9_a652_dd4c_a390_f9134a1b070d -->|calls| 84541f22_387a_4156_2ff4_e4c3755e1a97
  35737736_a609_1ec9_7d71_40e6f8d11cf3["quoteProfiles()"]
  fb48c3c9_a652_dd4c_a390_f9134a1b070d -->|calls| 35737736_a609_1ec9_7d71_40e6f8d11cf3
  style fb48c3c9_a652_dd4c_a390_f9134a1b070d fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot/src/main/java/org/springframework/boot/SpringApplication.java lines 644–661

	protected void logStartupProfileInfo(ConfigurableApplicationContext context) {
		Log log = getApplicationLog();
		if (log.isInfoEnabled()) {
			List<String> activeProfiles = quoteProfiles(context.getEnvironment().getActiveProfiles());
			if (ObjectUtils.isEmpty(activeProfiles)) {
				List<String> defaultProfiles = quoteProfiles(context.getEnvironment().getDefaultProfiles());
				String message = String.format("%s default %s: ", defaultProfiles.size(),
						(defaultProfiles.size() <= 1) ? "profile" : "profiles");
				log.info("No active profile set, falling back to " + message
						+ StringUtils.collectionToDelimitedString(defaultProfiles, ", "));
			}
			else {
				String message = (activeProfiles.size() == 1) ? "1 profile is active: "
						: activeProfiles.size() + " profiles are active: ";
				log.info("The following " + message + StringUtils.collectionToDelimitedString(activeProfiles, ", "));
			}
		}
	}

Domain

Subdomains

Calls

Called By

Frequently Asked Questions

What does logStartupProfileInfo() do?
logStartupProfileInfo() is a function in the spring-boot codebase.
What does logStartupProfileInfo() call?
logStartupProfileInfo() calls 2 function(s): getApplicationLog, quoteProfiles.
What calls logStartupProfileInfo()?
logStartupProfileInfo() is called by 1 function(s): prepareContext.

Analyze Your Own Codebase

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

Try Supermodel Free