Class LogbackMetricsAutoConfiguration


  • @Configuration
    @ConditionalOnClass({io.micrometer.core.instrument.MeterRegistry.class,ch.qos.logback.classic.LoggerContext.class,org.slf4j.LoggerFactory.class})
    @ConditionalOnBean(io.micrometer.core.instrument.MeterRegistry.class)
    @Conditional(io.micrometer.spring.autoconfigure.LogbackMetricsAutoConfiguration.LogbackLoggingCondition.class)
    @ConditionalOnProperty(value="management.metrics.binders.logback.enabled",
                           matchIfMissing=true)
    public class LogbackMetricsAutoConfiguration
    extends java.lang.Object
    Auto-configuration for Logback metrics.
    Since:
    1.1.0
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      io.micrometer.core.instrument.binder.logging.LogbackMetrics logbackMetrics()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • LogbackMetricsAutoConfiguration

        public LogbackMetricsAutoConfiguration()
    • Method Detail

      • logbackMetrics

        @Bean
        @ConditionalOnMissingBean
        public io.micrometer.core.instrument.binder.logging.LogbackMetrics logbackMetrics()