log4cplus/log4cplus
log4cplus is a simple to use C++ logging API providing thread-safe, flexible, and arbitrarily granular control over log management and configuration. It is modelled after the Java log4j API. observed · 2026-08-28
Health v2 · maintenance only
82/100
- Activity 92
- Release rhythm 60
- Longevity 100
Flags: no_license
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 621
- age_days: 4617
- days_rel: 57
- days_push: 53
- n_releases_24m: 2
Adoption not part of the score
1728 stars · 567 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
log4cplus is a C++ logging library modeled after Java's log4j API, offering thread-safe, flexible, and granular log management and configuration. It avoids heavy dependencies and supports a wide range of platforms including Linux, macOS, Windows, BSD, Android, and iOS.
Use cases
- add structured logging to a C++ application
- configure log levels and appenders at runtime
- replace printf debugging with a log4j-style logger
- log from multithreaded C++ code safely
- build a C++ library for Android or iOS with logging support
When to choose
- you want a mature log4j-like logging API in C++
- you need thread-safe logging with granular configuration
- you want minimal dependencies in a C++ project
- you target multiple platforms including mobile and BSD
When to avoid
- you need async structured logging for high-throughput services where spdlog may fit better
- your toolchain does not support C++23 required by 3.x releases
- you need logging integrated with a specific observability backend out of the box
Facets
library · maturity active
logging developer-tools backend windows bsd cross-platform cpp log4j-style thread-safe hierarchical-loggers configuration linux macos android ios
2 sources
- readme: https://github.com/log4cplus/log4cplus · fetched 2026-08-28 · 46e18d44cb2e
- homepage: https://log4cplus.github.io/log4cplus/ · fetched 2026-08-29 · e06adf95bbe4
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| log4cplus/log4cplus | main | 82 |
For agents
markdown · JSON · MCP: product_card(name="log4cplus/log4cplus")
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem