# 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

```sh
sudo av install brew:log4cpp
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install log4cpp
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install log4cpp
```

  Evidence: MacPorts ports tree: devel/log4cpp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- apk (92%):

```sh
sudo apk add log4cpp
```

  Evidence: Alpine Linux edge package indexes: log4cpp from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz

- Debian apt (92%):

```sh
sudo apt install liblog4cpp5-dev
```

  Evidence: Debian stable package indexes: liblog4cpp5-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- dnf (92%):

```sh
sudo dnf install log4cpp
```

  Evidence: Fedora Rawhide package metadata: log4cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#log4cpp
```

  Evidence: nixpkgs package indexes: pkgs/by-name/lo/log4cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- zypper (92%):

```sh
sudo zypper install liblog4cpp5
```

  Evidence: openSUSE Tumbleweed package metadata: liblog4cpp5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst

## Package facts

- **Package key:** brew:log4cpp
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/log4cpp>
- **Version:** 1.1.6
- **Source summary:** Configurable logging for C++
- **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>
- **Generated:** 2026-07-08T07:18:31+00:00

## Executables

- log4cpp-config (cli)
- log4cpp-config (alias)

## Build dependencies

- autoconf
- automake
- libtool

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.1.6
- Local data: ok
- Upstream repository: https://log4cpp.sourceforge.net/
- info: No package-manager update timestamp was available.
- info: Release/tag comparison is only available for GitHub repositories.
## 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.

### Sources

- <https://log4cpp.sourceforge.net/>
- <https://log4cpp.sourceforge.net/api/>
- <https://sourceforge.net/projects/log4cpp/files/>
- source_facts.package-manager


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Source Database Details

- **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:** stable

## Other Package-Manager Records

- Debian apt - liblog4cpp5-dev - 1.1.4-1: normalized package name match | Debian stable package indexes: liblog4cpp5-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for flexible logging (development) | http://log4cpp.sourceforge.net
- Debian apt - liblog4cpp5v5 - 1.1.4-1: normalized package name match | Debian stable package indexes: liblog4cpp5v5 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C++ library for flexible logging (runtime) | http://log4cpp.sourceforge.net
- Nix - log4cpp: normalized package name match | nixpkgs package indexes: pkgs/by-name/lo/log4cpp/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - liblog4cpp5-dev - 1.1.3-3.1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblog4cpp5-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for flexible logging (development) | http://log4cpp.sourceforge.net
- Ubuntu apt - liblog4cpp5v5 - 1.1.3-3.1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblog4cpp5v5 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C++ library for flexible logging (runtime) | http://log4cpp.sourceforge.net
- apk - log4cpp - 1.1.5-r0: normalized package name match | Alpine Linux edge package indexes: log4cpp from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Log library for C++ | https://log4cpp.sourceforge.net/
- apk - log4cpp-dev - 1.1.5-r0: normalized package name match | Alpine Linux edge package indexes: log4cpp-dev from https://dl-cdn.alpinelinux.org/alpine/edge/testing/x86_64/APKINDEX.tar.gz | Log library for C++ (development files) | https://log4cpp.sourceforge.net/
- dnf - log4cpp - 1.1.6-1.fc45: normalized package name match | Fedora Rawhide package metadata: log4cpp from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | C++ logging library | https://log4cpp.sourceforge.net/
- dnf - log4cpp-devel - 1.1.6-1.fc45: normalized package name match | 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 | Header files, libraries and development files | https://log4cpp.sourceforge.net/
- zypper - liblog4cpp5 - 1.1.6-1.2: normalized package name match | openSUSE Tumbleweed package metadata: liblog4cpp5 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Logging for C++ | https://log4cpp.sourceforge.net/
- zypper - log4cpp-devel - 1.1.6-1.2: normalized package name match | openSUSE Tumbleweed package metadata: log4cpp-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development tools for Log for C++ | https://log4cpp.sourceforge.net/
- zypper - log4cpp-doc - 1.1.6-1.2: normalized package name match | openSUSE Tumbleweed package metadata: log4cpp-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | HTML formatted API documention for Log for C++ | https://log4cpp.sourceforge.net/
- MacPorts - log4cpp: normalized package name match | MacPorts ports tree: devel/log4cpp/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [autoconf](https://www.automicvault.com/pkg/brew/autoconf/) - Build dependency declared by Homebrew.
- [automake](https://www.automicvault.com/pkg/brew/automake/) - Build dependency declared by Homebrew.
- [libtool](https://www.automicvault.com/pkg/brew/libtool/) - Build dependency declared by Homebrew.
- [fastnetmon](https://www.automicvault.com/pkg/brew/fastnetmon/) - Popular package that depends on this formula.
- [log4c](https://www.automicvault.com/pkg/brew/log4c/) - Shares av.db curated category or tags: cli, developer-tools, library, log4j-inspired, logging.
- [zlog](https://www.automicvault.com/pkg/brew/zlog/) - Shares av.db curated category or tags: cli, developer-tools, library, logging.
- [nerdlog](https://www.automicvault.com/pkg/brew/nerdlog/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [purr](https://www.automicvault.com/pkg/brew/purr/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [cctz](https://www.automicvault.com/pkg/brew/cctz/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [clog](https://www.automicvault.com/pkg/brew/clog/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [cpp-peglib](https://www.automicvault.com/pkg/brew/cpp-peglib/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [ctemplate](https://www.automicvault.com/pkg/brew/ctemplate/) - Shares av.db curated category or tags: c-plus-plus, cli, developer-tools, library.
- [htmlcxx](https://www.automicvault.com/pkg/brew/htmlcxx/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, developer, developer-tools, library.
- [omniorb](https://www.automicvault.com/pkg/brew/omniorb/) - Local package facts share a topical domain. Shared terms: c-plus-plus, cli, developer, developer-tools, plus.

## Combined YAML source

View the package source record on GitHub. [combined/log4cpp.yml](https://github.com/automic-vault/db/blob/main/combined/log4cpp.yml)


## Sources

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