Skip to content

Commit bcf6b12

Browse files
committed
Merge pull request spring-projects#10000 from olegz:spring-projectsGH-9999
* pr/10000: Polish "Expose SpringBootCondition's logger" Expose SpringBootCondition's logger
2 parents 914b358 + fa85308 commit bcf6b12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

spring-boot-autoconfigure/src/main/java/org/springframework/boot/autoconfigure/condition/SpringBootCondition.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -158,4 +158,12 @@ protected final boolean matches(ConditionContext context,
158158
return condition.matches(context, metadata);
159159
}
160160

161+
/**
162+
* Return the {@link Log logger} used by this instance of the condition.
163+
* @return the {@link Log logger}
164+
*/
165+
protected final Log getLogger() {
166+
return this.logger;
167+
}
168+
161169
}

0 commit comments

Comments
 (0)