@Configuration(proxyBeanMethods=false)
@AutoConfigureAfter(value={MetricsAutoConfiguration.class,MeterRegistryAutoConfiguration.class})
@ConditionalOnClass(value={io.micrometer.core.instrument.binder.logging.Log4j2Metrics.class,org.apache.logging.log4j.LogManager.class},
name="org.apache.logging.log4j.core.LoggerContext")
@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