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

addNonMatchLogMessage() — spring-boot Function Reference

Architecture documentation for the addNonMatchLogMessage() function in ConditionEvaluationReportMessage.java from the spring-boot codebase.

Function java GradlePlugin RunTasks calls 3 called by 1

Entity Profile

Dependency Diagram

graph TD
  b9811ad4_ce37_0221_7f6c_ced6410b36e8["addNonMatchLogMessage()"]
  02e8b4aa_1a04_a03a_d06f_0d4fc1026e75["logNegativeMatches()"]
  02e8b4aa_1a04_a03a_d06f_0d4fc1026e75 -->|calls| b9811ad4_ce37_0221_7f6c_ced6410b36e8
  4045300f_88b1_c7e4_1bff_e7c58cbe09af["getOutcome()"]
  b9811ad4_ce37_0221_7f6c_ced6410b36e8 -->|calls| 4045300f_88b1_c7e4_1bff_e7c58cbe09af
  2f899a14_8285_228a_1809_f8834d27dcf6["add()"]
  b9811ad4_ce37_0221_7f6c_ced6410b36e8 -->|calls| 2f899a14_8285_228a_1809_f8834d27dcf6
  36d91e88_a689_0966_eefd_eb012d05d30a["logConditionAndOutcome()"]
  b9811ad4_ce37_0221_7f6c_ced6410b36e8 -->|calls| 36d91e88_a689_0966_eefd_eb012d05d30a
  style b9811ad4_ce37_0221_7f6c_ced6410b36e8 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

core/spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/logging/ConditionEvaluationReportMessage.java lines 163–186

	private void addNonMatchLogMessage(StringBuilder message, String source,
			ConditionAndOutcomes conditionAndOutcomes) {
		message.append(String.format("%n   %s:%n", source));
		List<ConditionAndOutcome> matches = new ArrayList<>();
		List<ConditionAndOutcome> nonMatches = new ArrayList<>();
		for (ConditionAndOutcome conditionAndOutcome : conditionAndOutcomes) {
			if (conditionAndOutcome.getOutcome().isMatch()) {
				matches.add(conditionAndOutcome);
			}
			else {
				nonMatches.add(conditionAndOutcome);
			}
		}
		message.append(String.format("      Did not match:%n"));
		for (ConditionAndOutcome nonMatch : nonMatches) {
			logConditionAndOutcome(message, "         ", nonMatch);
		}
		if (!matches.isEmpty()) {
			message.append(String.format("      Matched:%n"));
			for (ConditionAndOutcome match : matches) {
				logConditionAndOutcome(message, "         ", match);
			}
		}
	}

Domain

Subdomains

Frequently Asked Questions

What does addNonMatchLogMessage() do?
addNonMatchLogMessage() is a function in the spring-boot codebase.
What does addNonMatchLogMessage() call?
addNonMatchLogMessage() calls 3 function(s): add, getOutcome, logConditionAndOutcome.
What calls addNonMatchLogMessage()?
addNonMatchLogMessage() is called by 1 function(s): logNegativeMatches.

Analyze Your Own Codebase

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

Try Supermodel Free