Automic VaultAutomic Vault

brew

使用 Homebrew, apk, dnf, MacPorts, Nix, apt, zypper 安装 log4cpp

查看 log4cpp 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install log4cpp

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install log4cpp

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

Linux

Alpine Linux apk已验证 · 92%
sudo apk add log4cpp

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

Fedora dnf已验证 · 92%
sudo dnf install log4cpp

Fedora Rawhide package metadata · log4cpp · 来源: dl.fedoraproject.org

Nix已验证 · 92%
nix profile install nixpkgs#log4cpp

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

Debian apt已验证 · 92%
sudo apt install liblog4cpp5-dev

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

openSUSE zypper已验证 · 92%
sudo zypper install liblog4cpp5

openSUSE Tumbleweed package metadata · liblog4cpp5 · 来源: download.opensuse.org

概览

软件包摘要

Configurable logging for C++

命令和别名

  • log4cpp-config

历史

项目历史与用法

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.

时间线

  • 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.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 6 个平台目标。
  • 构建元数据列出 3 个构建依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

可执行文件

已安装的可执行文件

命令类型暴露范围备注
log4cpp-configcli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-25
管理器版本1.1.6
管理器更新时间2026-07-24
本地数据OK
上游not checked
检测到的最新版本未检测到

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
Pulseupdated
构建依赖autoconf, automake, libtool
Bottle可用 (于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, sonoma, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式: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 提供
  • normalized package name match
  • 匹配方式: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
  • 匹配方式: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

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • 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