Class Log4J2MetricsAutoConfiguration
java.lang.Object
org.springframework.boot.actuate.autoconfigure.metrics.Log4J2MetricsAutoConfiguration
@AutoConfiguration(after={MetricsAutoConfiguration.class,CompositeMeterRegistryAutoConfiguration.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(io.micrometer.core.instrument.MeterRegistry.class)
@Conditional(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
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionio.micrometer.core.instrument.binder.logging.Log4j2Metrics
-
Constructor Details
-
Log4J2MetricsAutoConfiguration
public Log4J2MetricsAutoConfiguration()
-
-
Method Details
-
log4j2Metrics
@Bean @ConditionalOnMissingBean public io.micrometer.core.instrument.binder.logging.Log4j2Metrics log4j2Metrics()
-