macOS
brew install log4cpplocal Homebrew formula metadata
sudo port install log4cppMacPorts ports tree · devel/log4cpp/Portfile · 来源: api.github.com
安装
brew install log4cpplocal Homebrew formula metadata
sudo port install log4cppMacPorts ports tree · devel/log4cpp/Portfile · 来源: api.github.com
sudo apk add log4cppAlpine Linux edge package indexes · log4cpp · 来源: dl-cdn.alpinelinux.org
sudo dnf install log4cppFedora Rawhide package metadata · log4cpp · 来源: dl.fedoraproject.org
nix profile install nixpkgs#log4cppnixpkgs package indexes · pkgs/by-name/lo/log4cpp/package.nix · 来源: api.github.com
sudo apt install liblog4cpp5-devDebian stable package indexes · liblog4cpp5-dev · 来源: deb.debian.org
sudo zypper install liblog4cpp5openSUSE Tumbleweed package metadata · liblog4cpp5 · 来源: download.opensuse.org
概览
Configurable logging for C++
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
log4cpp-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://log4cpp.sourceforge.net/
安装元数据
| 软件包键 | brew:log4cpp |
|---|---|
| 版本 | 1.1.6 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/log4cpp |
| 主页 | https://log4cpp.sourceforge.net/ |
| 仓库 | https://sourceforge.net/p/log4cpp/codegit |
| 上游文档 | https://log4cpp.sourceforge.net/ |
| 许可证 | LGPL-2.1-or-later |
| 源码归档 | https://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-1.1.6.tar.gz |
| 最后更新 | 2026-07-24T15:58:49+02:00 |
| Pulse | updated |
| 构建依赖 | autoconf, automake, libtool |
| Bottle | 可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| 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 |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
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 log4cpp来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.