OSS TanbouSign in with GitHub

configure Java application logging through an API, backend, appenders, and layouts

OSS scale score 302.3OSS health 100
About these scores

OSS scale score is an unbounded metric that log-compresses and weights Stars, Watchers, Forks, and Contributors. Discovery score is the current OSS scale score minus the score at discovery. Update pace is commits in the last 30 days, growth momentum is the OSS scale score difference within the recent observation window, and OSS health is a 0–100 rating based on available recency, Community Health, and release data.

Stars
3,634
Primary language
Java
License
Apache-2.0
Repository last updated
Oct 6, 2026
On this page

Overview

Apache Log4j is a Java logging framework composed of an API, an implementation, and deployment components for multiple use cases. It separates application logging calls from destinations, formats, rolling behavior, and other backend configuration.

Features and best fit

Based on official documentation; not hands-on tested · Content checked:

Key features

Separate the logging API from backend configuration

The README describes Log4j as an industrial-grade Java logging framework composed of an API, its implementation, and supporting components.

Sources: [2]

Configure destinations, layouts, and rolling behavior through appenders and backend settings

Backend configuration can control where logs are sent and how they are formatted or rotated without requiring major changes to application logging calls.

Sources: [2]

Best fit

Fits Java services standardizing logging policy across modules

It provides a common foundation for logger APIs, output formats, file rotation, error handling, and integration with observability pipelines.

Sources: [2]

Before adoption

Continuously track security advisories and patch releases

Logging frameworks are broadly embedded in applications, making version hygiene important. Version 2.26.1 fixes RollingFileAppender behavior, JSON encoding, resource leaks, KafkaAppender retry handling, and related issues.

Sources: [3]

Official sources

  1. [1]apache/logging-log4j2 — GitHub repository(2026-10-06)
  2. [2]Apache Log4j — README(2026-10-06)
  3. [3]Apache Log4j 2.26.1 release(2026-10-06)
Supplemental curator note

It fits Java applications that want one logging API/backend with configurable destinations and formats. Track security advisories and dependency versions continuously and avoid enabling unnecessary appenders or plugins.

Try it in 3 steps

  1. 1

    Get the source

    git clone --depth 1 https://github.com/apache/logging-log4j2.git
  2. 2

    Enter the repository

    cd logging-log4j2
  3. 3

    Check the official steps

    Continue with the commands in the README Installation, Quick Start, or Getting Started section.

    find . -maxdepth 1 -iname 'README*' -exec sed -n '1,220p' {} \; -quit
Check the official README

Growth

Growth trends · Last 30 days

3,634 Stars

Trend data is still being collected.

Built with

Categories and tags

GitHub data

GitHub dataView detailed GitHub data

GitHub Topics

  • apache
  • api
  • java
  • jvm
  • library
  • log4j
  • log4j2
  • logger
  • logging
  • syslog
Stars
3,634
Forks
1,748
Watchers
3,634
Open issues
228
Contributors
268
Owner type
Organization
Primary language
Java
License
Apache-2.0
Repository last updated
Oct 6, 2026
Write a related article

Share a guide or use case for this OSS in Markdown. Articles are published after administrator approval.

Report incorrect information

Tell us if any listing information is incorrect or outdated.

After reading this page, do you know what to do next?