@Configuration @AutoConfigureAfter(value=MetricsAutoConfiguration.class) @ConditionalOnClass(value={io.micrometer.core.instrument.MeterRegistry.class,ch.qos.logback.classic.LoggerContext.class,org.slf4j.LoggerFactory.class}) @ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class) @Conditional(value=org.springframework.boot.actuate.autoconfigure.metrics.LogbackMetricsAutoConfiguration.LogbackLoggingCondition.class) @ConditionalOnProperty(value="management.metrics.binders.logback.enabled", matchIfMissing=true) public class LogbackMetricsAutoConfiguration extends Object
Auto-configuration
for Logback metrics.Constructor and Description |
---|
LogbackMetricsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
io.micrometer.core.instrument.binder.logging.LogbackMetrics |
logbackMetrics() |
@Bean @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.logging.LogbackMetrics logbackMetrics()
Copyright © 2020 Pivotal Software, Inc.. All rights reserved.