Automic VaultAutomic Vault

brew

Install log4cpp with Homebrew, apk, apt, dnf, MacPorts, Nix, zypper

Configurable logging for C++. Version 1.1.6 via Homebrew; verified from local package data.

install

Additional install commands

macOS

Homebrewverified · 100%
brew install log4cpp

local Homebrew formula metadata

MacPortsverified · 94%
sudo port install log4cpp

MacPorts ports tree · devel/log4cpp/Portfile · source: api.github.com

Linux

Alpine Linux apkverified · 92%
sudo apk add log4cpp

Alpine Linux edge package indexes · log4cpp · source: dl-cdn.alpinelinux.org

Debian aptverified · 92%
sudo apt install liblog4cpp5-dev

Debian stable package indexes · liblog4cpp5-dev · source: deb.debian.org

Fedora dnfverified · 92%
sudo dnf install log4cpp

Fedora Rawhide package metadata · log4cpp · source: dl.fedoraproject.org

Nixverified · 92%
nix profile install nixpkgs#log4cpp

nixpkgs package indexes · pkgs/by-name/lo/log4cpp/package.nix · source: api.github.com

openSUSE zypperverified · 92%
sudo zypper install liblog4cpp5

openSUSE Tumbleweed package metadata · liblog4cpp5 · source: download.opensuse.org

overview

Package summary

Configurable logging for C++

Commands and aliases

  • log4cpp-config

history

Project history and usage

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.

Project history

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.

Adoption history

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.

How it is used

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.

Why package nerds care

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.

Timeline

  • 2000: log4cpp 0.0 and 0.1 artifacts appear on SourceForge; project coding was initiated in late 2000.
  • 2001: log4cpp 0.2.x releases add packaging and platform support.
  • 2002: 0.3.x development releases add threading, property configuration, rolling files, and Windows fixes.
  • 2007: Stable 1.0 release.
  • 2013: 1.1.1 release; project moves to Git.
  • 2025: 1.1.5 release adds modern CMake and Windows build support.
  • 2026: 1.1.6 release adds enhanced CMake examples, CTest support, and logging macros.

Related projects

  • log4j: the Java logging API that inspired log4cpp's categories and appenders.
  • log4c: a C logging framework in the same log4j-inspired family.
  • log4cplus: another C++ logging implementation listed by the log4cpp project page.

security posture

Risk level: green

narrow executable package without higher-risk signals.

Risk classifier

green risk · low confidence · appliance

Why

  • narrow executable package without higher-risk signals

Signals

  • metadata:no-higher-risk-signals

Install behavior

  • No Homebrew post-install hook is recorded in formula metadata.
  • Homebrew bottle metadata is available for 6 platform targets.
  • Build metadata lists 3 build dependencies.

Recommended review

Before unattended agent use, check whether the tool reads plaintext credentials, writes remote state, publishes artifacts, or shells out to plugins.

executables

Installed executables

CommandKindExposureNote
log4cpp-configcliglobal executable

freshness

Version and 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.

page generated2026-07-08
manager version1.1.6
manager updated
local dataok
upstreamnot checked
latest detectednot detected

https://log4cpp.sourceforge.net/

  • infoNo package-manager update timestamp was available.low confidence
  • infoRelease/tag comparison is only available for GitHub repositories.https://log4cpp.sourceforge.net/none confidence

install metadata

Package metadata

Package keybrew:log4cpp
Version1.1.6
Package managerHomebrew
Package manager pagehttps://formulae.brew.sh/formula/log4cpp
Homepagehttps://log4cpp.sourceforge.net/
Repositoryhttps://sourceforge.net/p/log4cpp/codegit
Upstream docshttps://log4cpp.sourceforge.net/
LicenseLGPL-2.1-or-later
Source archivehttps://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-1.1.6.tar.gz
Build dependenciesautoconf, automake, libtool
Bottleavailable (on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-installnot defined
Servicenone declared

registry facts

Source database details

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Namelog4cpp
Version Scheme0
Revision0
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • stable

source database matches

Other package-manager records

Matches are pulled from external package-manager indexes and kept separate from local Automic Vault package links.

Debian apt95%

liblog4cpp5-dev 1.1.4-1

C++ library for flexible logging (development)

http://log4cpp.sourceforge.net

sudo apt install liblog4cpp5-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: log4cpp
  • 1 dependencies
  • normalized package name match
  • Matched by: Log4cpp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblog4cpp5-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblog4cpp5v5 1.1.4-1

C++ library for flexible logging (runtime)

http://log4cpp.sourceforge.net

sudo apt install liblog4cpp5v5
  • Section: libs
  • Architecture: amd64
  • Source Package: log4cpp
  • 3 dependencies
  • normalized package name match
  • Matched by: Log4cpp
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblog4cpp5v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

log4cpp

nix profile install nixpkgs#log4cpp
  • normalized package name match
  • Matched by: Log4cpp
nixpkgs package indexes · api.github.com · nixpkgs package indexes: pkgs/by-name/lo/log4cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
Ubuntu apt95%

liblog4cpp5-dev 1.1.3-3.1

C++ library for flexible logging (development)

http://log4cpp.sourceforge.net

sudo apt install liblog4cpp5-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: log4cpp
  • 1 dependencies
  • normalized package name match
  • Matched by: Log4cpp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblog4cpp5-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

liblog4cpp5v5 1.1.3-3.1

C++ library for flexible logging (runtime)

http://log4cpp.sourceforge.net

sudo apt install liblog4cpp5v5
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: log4cpp
  • 3 dependencies
  • normalized package name match
  • Matched by: Log4cpp
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblog4cpp5v5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
apk95%

log4cpp 1.1.5-r0

Log library for C++

https://log4cpp.sourceforge.net/

sudo apk add log4cpp
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: log4cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Log4cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: log4cpp from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
apk95%

log4cpp-dev 1.1.5-r0

Log library for C++ (development files)

https://log4cpp.sourceforge.net/

sudo apk add log4cpp-dev
  • License: LGPL-2.1-or-later
  • Architecture: x86_64
  • Source Package: log4cpp
  • 1 dependencies
  • 1 provides
  • normalized package name match
  • Matched by: Log4cpp
Alpine Linux edge package indexes · dl-cdn.alpinelinux.org · Alpine Linux edge package indexes: log4cpp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz
dnf95%

log4cpp 1.1.6-1.fc45

C++ logging library

https://log4cpp.sourceforge.net/

sudo dnf install log4cpp
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: log4cpp
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Log4cpp
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: log4cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

log4cpp-devel 1.1.6-1.fc45

Header files, libraries and development files

https://log4cpp.sourceforge.net/

sudo dnf install log4cpp-devel
  • License: LGPL-2.1-only
  • Category: Unspecified
  • Architecture: i686
  • Source Package: log4cpp
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Log4cpp
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: log4cpp-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

liblog4cpp5 1.1.6-1.2

Logging for C++

https://log4cpp.sourceforge.net/

sudo zypper install liblog4cpp5
  • License: LGPL-2.1-only
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: log4cpp
  • 5 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Log4cpp
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblog4cpp5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

log4cpp-devel 1.1.6-1.2

Development tools for Log for C++

https://log4cpp.sourceforge.net/

sudo zypper install log4cpp-devel
  • License: LGPL-2.1-only
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: log4cpp
  • 3 dependencies
  • 2 provides
  • normalized package name match
  • Matched by: Log4cpp
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: log4cpp-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

log4cpp-doc 1.1.6-1.2

HTML formatted API documention for Log for C++

https://log4cpp.sourceforge.net/

sudo zypper install log4cpp-doc
  • License: LGPL-2.1-only
  • Category: Documentation/HTML
  • Architecture: noarch
  • Source Package: log4cpp
  • 1 provides
  • normalized package name match
  • Matched by: Log4cpp
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: log4cpp-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

log4cpp

sudo port install log4cpp
  • normalized package name match
  • Matched by: Log4cpp
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/log4cpp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

source trail

Generated from repository data

This page is generated by av-web from the private package SQLite artifact built by scripts/generate-pkg-sqlite.py.

Used sources

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment