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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
bindTo(MeterRegistry registry)
void
close()
-
-
-
Method Detail
-
bindTo
public void bindTo(MeterRegistry registry)
- Specified by:
bindTo
in interfaceMeterBinder
-
close
public void close()
- Specified by:
close
in interfacejava.lang.AutoCloseable
-
-