@Configuration
@AutoConfigureAfter(value=MetricsAutoConfiguration.class)
@ConditionalOnClass(value={io.micrometer.core.instrument.binder.logging.Log4j2Metrics.class,org.apache.logging.log4j.core.LoggerContext.class,org.apache.logging.log4j.LogManager.class})
@ConditionalOnBean(value=io.micrometer.core.instrument.MeterRegistry.class)
@Conditional(value=org.springframework.boot.actuate.autoconfigure.metrics.Log4J2MetricsAutoConfiguration.Log4JCoreLoggerContextCondition.class)
public class Log4J2MetricsAutoConfiguration
extends Object
Auto-configuration for Log4J2 metrics.
- Since:
- 2.1.0
- Author:
- Andy Wilkinson