Registry / logging / metrics-log4j2

metrics-log4j2

JSON →
library4.2.33javamavenunverified

Instrumented appender for Log4j 2.x that integrates with Dropwizard Metrics.

<dependency> <groupId>io.dropwizard.metrics</groupId> <artifactId>metrics-log4j2</artifactId> <version>4.2.33</version> </dependency>
INSTALL
IMPORT
SIG · METRICS-LOG4J2
M
metrics-log4j2
loggingjavav4.2.33
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

InstrumentedAppender
com.codahale.metrics.log4j2.InstrumentedAppender

Minimal usage of InstrumentedAppender class.

import com.codahale.metrics.log4j2.InstrumentedAppender; public class Example { public static void main(String[] args) { InstrumentedAppender appender = new InstrumentedAppender(); appender.start(); } }
Debug
Known issues
gotchaRequires Log4j2 and Dropwizard Metrics dependencies.
fix
Ensure both libraries are on classpath.
affects: *
Upgrade
Version history
4.2.33latest on Maven
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Resources
metrics-log4j2 — mvn dependency:get metrics-log4j2 · libregistry