apache/logging-log4j2
Apache Log4j is a versatile, feature-rich, efficient logging API and backend for Java. observed · 2026-08-28
Health v2 · maintenance only
92/100
- Activity 98
- Release rhythm 80
- Longevity 100
Flags: no_readme
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-02. Adoption (stars, forks) is never an input.
- gap_med: 41.0
- age_days: 4830
- days_rel: 58
- days_push: 12
- n_releases_24m: 13
Adoption not part of the score
3614 stars · 1733 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-29, confidence not recorded
Apache Log4j 2 is an industrial-grade Java logging framework consisting of a feature-rich logging API (Log4j API) and a high-performance implementation (Log4j Core). It supports appenders for files, sockets, databases, and SMTP, multiple output layouts, filters, lookups, hot config reloading, and extensive plugin-based extensibility.
Use cases
- add structured logging to a Java application
- replace System.out.println with a proper logging framework
- route logs from SLF4J or JUL to a single backend
- write logs to files, databases, or syslog in Java
- configure log levels and formats via log4j2.xml
- use Log4j Core as the logging backend in Spring Boot
- migrate from Log4j 1 or Logback
When to choose
- you need a mature, actively maintained logging backend for JVM applications
- you want a logging facade with rich message types and lambda support
- you need high-throughput, garbage-collector-friendly logging
- you need flexible appenders, layouts, and filters out of the box
When to avoid
- you are not on the JVM platform
- you need a minimal zero-dependency logging solution
- your project is locked to Log4j 1.x APIs without migration effort
Facets
library · maturity stable
logging monitoring plugin-system developer-tools backend monitoring jvm cross-platform log4j2 logging-framework java apache slf4j appender log-configuration
4 sources
- homepage: https://logging.apache.org/log4j/2.x · fetched 2026-08-29 · dca5bef83745
- site_page: https://logging.apache.org/log4j/2.x/manual/getting-started.html · fetched 2026-08-29 · 0d9fb104b1ba
- site_page: https://logging.apache.org/log4j/2.x/manual/installation.html · fetched 2026-08-29 · 54a4a3d4de68
- site_page: https://logging.apache.org/log4j/2.x/faq.html · fetched 2026-08-29 · 96eee4cc17d1
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| apache/logging-log4j2 | main | 92 |
For agents
markdown · JSON · MCP: product_card(name="apache/logging-log4j2")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem