Class Log4j2Metrics
java.lang.Object
io.micrometer.core.instrument.binder.logging.Log4j2Metrics
- All Implemented Interfaces:
MeterBinder
,java.lang.AutoCloseable
@NonNullApi @NonNullFields public class Log4j2Metrics extends java.lang.Object implements MeterBinder, java.lang.AutoCloseable
MeterBinder
for Apache Log4j 2.- Since:
- 1.1.0
-
Constructor Summary
Constructors Constructor Description Log4j2Metrics()
Log4j2Metrics(java.lang.Iterable<Tag> tags)
Log4j2Metrics(java.lang.Iterable<Tag> tags, org.apache.logging.log4j.core.LoggerContext loggerContext)
-
Method Summary
Modifier and Type Method Description void
bindTo(MeterRegistry registry)
void
close()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Log4j2Metrics
public Log4j2Metrics() -
Log4j2Metrics
-
Log4j2Metrics
public Log4j2Metrics(java.lang.Iterable<Tag> tags, org.apache.logging.log4j.core.LoggerContext loggerContext)
-
-
Method Details
-
bindTo
- Specified by:
bindTo
in interfaceMeterBinder
-
close
public void close()- Specified by:
close
in interfacejava.lang.AutoCloseable
-