macOS
brew install log4cpplocal Homebrew formula metadata
sudo port install log4cppMacPorts ports tree · devel/log4cpp/Portfile · source: api.github.com
brew
Configurable logging for C++. Version 1.1.6 via Homebrew; verified from local package data.
install
brew install log4cpplocal Homebrew formula metadata
sudo port install log4cppMacPorts ports tree · devel/log4cpp/Portfile · source: api.github.com
sudo apk add log4cppAlpine Linux edge package indexes · log4cpp · source: dl-cdn.alpinelinux.org
sudo apt install liblog4cpp5-devDebian stable package indexes · liblog4cpp5-dev · source: deb.debian.org
sudo dnf install log4cppFedora Rawhide package metadata · log4cpp · source: dl.fedoraproject.org
nix profile install nixpkgs#log4cppnixpkgs package indexes · pkgs/by-name/lo/log4cpp/package.nix · source: api.github.com
sudo zypper install liblog4cpp5openSUSE Tumbleweed package metadata · liblog4cpp5 · source: download.opensuse.org
overview
Configurable logging for C++
history
log4cpp, officially also called Log for C++, is a C++ logging library modeled after log4j. It provides categories, appenders, layouts, properties-based configuration, file and syslog logging, and optional integrations such as IDSA.
The official project page says Bastiaan Bakker initiated coding on log4cpp in late 2000. SourceForge file metadata records the earliest old-file releases in December 2000, and the project page's release history shows a rapid 0.2.x and 0.3.x development period through 2002.
The project reached a stable 1.0 release in September 2007, then moved from CVS to Git with version 1.1.1 in November 2013. The official page says older pre-1.1.1 releases remain in CVS but that CVS is no longer maintained.
Development continued after a long mature-library period. The official release history lists 1.1.5 in December 2025 with CMake and modern Windows toolchain work, and 1.1.6 in March 2026 with enhanced CMake examples, CTest support, config.h generation, and compile-time stripping macros.
log4cpp's own page points to availability in Debian stable, Ubuntu packages, and FreeBSD ports, and describes RPM support for building packages from the source tarball. The supplied package metadata also records availability in Homebrew, Alpine, Fedora/DNF, MacPorts, Nix, openSUSE/Zypper, Debian, and Ubuntu.
Its adoption pattern is typical for a C++ library: it is installed mostly as headers and libraries for programs that want log4j-like logging without adopting a larger framework. SourceForge download pages also show the maintained 1.1.x line alongside older 1.0.x, 0.3.x, and 0.2.x folders.
Applications include log4cpp headers, create or retrieve Category instances, attach appenders, and set priorities. The official examples demonstrate console, file, and rolling-file appenders, plus a properties-file workflow using `log4cpp::PropertyConfigurator::configure("log4cpp.properties")`.
Builders historically used autotools (`./configure`, `make`, `make check`, `make install`), while recent releases also support CMake, CTest, Visual Studio 2022 CMake projects, and RAD Studio 12.
log4cpp is package-nerd interesting because it spans several eras of C++ packaging: SourceForge CVS tarballs, autotools releases, LGPL library packaging, distro development packages, a Git migration, and later CMake modernization. It is a small library, but one that reflects how long-lived C++ dependencies survive toolchain changes.
security posture
narrow executable package without higher-risk signals.
green risk · low confidence · appliance
Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.
executables
| Command | Kind | Exposure | Note |
|---|---|---|---|
log4cpp-config | cli | global executable |
freshness
These signals separate page generation age, package-manager activity, and upstream release comparison. Version lag is warned only when an evidence URL and comparable versions are present.
https://log4cpp.sourceforge.net/
install metadata
| Package key | brew:log4cpp |
|---|---|
| Version | 1.1.6 |
| Package manager | Homebrew |
| Package manager page | https://formulae.brew.sh/formula/log4cpp |
| Homepage | https://log4cpp.sourceforge.net/ |
| Repository | https://sourceforge.net/p/log4cpp/codegit |
| Upstream docs | https://log4cpp.sourceforge.net/ |
| License | LGPL-2.1-or-later |
| Source archive | https://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-1.1.6.tar.gz |
| Build dependencies | autoconf, automake, libtool |
| Bottle | available (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | not defined |
| Service | none declared |
registry facts
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | log4cpp |
| Version Scheme | 0 |
| Revision | 0 |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
source database matches
Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.
liblog4cpp5-dev 1.1.4-1
C++ library for flexible logging (development)
http://log4cpp.sourceforge.net
sudo apt install liblog4cpp5-devliblog4cpp5v5 1.1.4-1
C++ library for flexible logging (runtime)
http://log4cpp.sourceforge.net
sudo apt install liblog4cpp5v5log4cpp
nix profile install nixpkgs#log4cppliblog4cpp5-dev 1.1.3-3.1
C++ library for flexible logging (development)
http://log4cpp.sourceforge.net
sudo apt install liblog4cpp5-devliblog4cpp5v5 1.1.3-3.1
C++ library for flexible logging (runtime)
http://log4cpp.sourceforge.net
sudo apt install liblog4cpp5v5log4cpp 1.1.5-r0
Log library for C++
https://log4cpp.sourceforge.net/
sudo apk add log4cpplog4cpp-dev 1.1.5-r0
Log library for C++ (development files)
https://log4cpp.sourceforge.net/
sudo apk add log4cpp-devlog4cpp 1.1.6-1.fc45
C++ logging library
https://log4cpp.sourceforge.net/
sudo dnf install log4cpplog4cpp-devel 1.1.6-1.fc45
Header files, libraries and development files
https://log4cpp.sourceforge.net/
sudo dnf install log4cpp-develliblog4cpp5 1.1.6-1.2
Logging for C++
https://log4cpp.sourceforge.net/
sudo zypper install liblog4cpp5log4cpp-devel 1.1.6-1.2
Development tools for Log for C++
https://log4cpp.sourceforge.net/
sudo zypper install log4cpp-devellog4cpp-doc 1.1.6-1.2
HTML formatted API documention for Log for C++
https://log4cpp.sourceforge.net/
sudo zypper install log4cpp-doclog4cpp
sudo port install log4cppsource trail
This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.
View the package source record on GitHub.