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. See: logging-log4j2#1550 See: micrometer#2176
Since:
1.1.0
  • Constructor Details

    • Log4j2Metrics

      public Log4j2Metrics()
    • Log4j2Metrics

      public Log4j2Metrics(Iterable<Tag> tags)
    • Log4j2Metrics

      public Log4j2Metrics(Iterable<Tag> tags, org.apache.logging.log4j.core.LoggerContext loggerContext)
  • Method Details