Class Log4j2Metrics
java.lang.Object
io.micrometer.core.instrument.binder.logging.Log4j2Metrics
- All Implemented Interfaces:
MeterBinder
,AutoCloseable
@NonNullApi
@NonNullFields
public class Log4j2Metrics
extends Object
implements MeterBinder, AutoCloseable
MeterBinder
for Apache Log4j 2. Please use at least 2.21.0 since there was a
bug in earlier versions that prevented Micrometer to increment its counters correctly.- Since:
- 1.1.0
- See Also:
-
Constructor Summary
ConstructorDescriptionLog4j2Metrics
(Iterable<Tag> tags) Log4j2Metrics
(Iterable<Tag> tags, org.apache.logging.log4j.core.LoggerContext loggerContext) -
Method Summary
-
Constructor Details
-
Log4j2Metrics
public Log4j2Metrics() -
Log4j2Metrics
-
Log4j2Metrics
-
-
Method Details
-
bindTo
- Specified by:
bindTo
in interfaceMeterBinder
-
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-