Commit 58826644 authored by Oleg Zhurakousky's avatar Oleg Zhurakousky Committed by Stephane Nicoll

Expose SpringBootCondition's logger

See gh-10000
parent 914b3588
......@@ -18,7 +18,7 @@ package org.springframework.boot.autoconfigure.condition;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.slf4j.Logger;
import org.springframework.context.annotation.Condition;
import org.springframework.context.annotation.ConditionContext;
import org.springframework.core.type.AnnotatedTypeMetadata;
......@@ -158,4 +158,12 @@ public abstract class SpringBootCondition implements Condition {
return condition.matches(context, metadata);
}
/**
* Returns the instance of {@link Logger} used by this
* instance of the condition.
* @return instance of {@link Logger}
*/
protected final Log getLogger() {
return this.logger;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment