Automic VaultAutomic Vault

brew

使用 Homebrew, dnf, MacPorts, apt, zypper 安装 log4c

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

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install log4c

local Homebrew formula metadata

MacPorts已验证 · 94%
sudo port install log4c

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

Linux

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

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

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

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

openSUSE zypper已验证 · 92%
sudo zypper install liblog4c-devel

openSUSE Tumbleweed package metadata · liblog4c-devel · 来源: download.opensuse.org

概览

软件包摘要

Logging Framework for C

命令和别名

  • log4c-config

历史

项目历史与用法

log4c is a C logging framework modeled after Apache log4j, intended to bring category-based logging, appenders, layouts, and runtime configuration to C programs that need flexible output to files, syslog, or other destinations.

项目历史

The official documentation describes log4c as a SourceForge-hosted C library that stayed close to the log4j API where practical while adapting the design to C. Its documentation also credits earlier and parallel C logging work, including Mark Mendel's macro-oriented log4c project and Bastiaan Bakker's log4cpp as influences.

SourceForge release metadata shows a long 1.0.x line in the 2000s, a 1.2.1 release in 2007, and later maintenance releases through 1.2.4 in October 2013. The 1.2.4 documentation still presents an autotools build and an XML-style log4crc configuration file.

采用历史

log4c became a package-manager-visible C logging dependency rather than a large end-user command. The supplied package metadata records packaging in Homebrew, Debian and Ubuntu as liblog4c-dev, Fedora/DNF, MacPorts, and openSUSE/Zypper, which is the main adoption signal for a small C library of this vintage.

Its official platform list covers several Unix systems, including HP-UX, AIX, FreeBSD, Solaris, macOS-era Darwin, and multiple Linux distributions, reflecting the portability expectations of C infrastructure libraries.

使用方式

Programs link against log4c and configure categories, appenders, and layouts with a log4crc XML file. The documented search order is `${LOG4C_RCPATH}/log4crc`, then `${HOME}/.log4crc`, then `./log4crc`, with environment variables also available for root priority and appender selection.

Package users mostly encounter log4c through development packages, headers, libraries, generated Doxygen documentation, pkg-config or log4c-config metadata, and build scripts that need a C logging backend.

为什么软件包爱好者会关心

log4c is a classic example of the early-2000s log4j pattern spreading into native-language package ecosystems. For package maintainers it matters less as a flashy CLI and more as a small ABI-bearing C library with autotools metadata, distro patches, and reverse dependencies that expect stable headers and linker flags.

时间线

  • 2007: SourceForge metadata lists log4c 1.2.1 artifacts.
  • 2012: log4c 1.2.2 release artifacts are published on SourceForge.
  • 2013: log4c 1.2.3 and 1.2.4 release artifacts are published on SourceForge.

Related projects

  • log4j: the Java logging library whose API and design motivated log4c.
  • log4cpp: the C++ logging project credited by the log4c documentation as an influence.

安全态势

风险级别:绿色

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 元数据适用于 13 个平台目标。

建议审查

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

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
${LOG4C_RCPATH}/log4crc${HOME}/.log4crc./log4crc

可执行文件

已安装的可执行文件

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

新鲜度

版本和新鲜度

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

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

https://log4c.sourceforge.net/

安装元数据

软件包元数据

软件包键brew:log4c
版本1.2.4
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/log4c
主页https://log4c.sourceforge.net/
仓库https://sourceforge.net/p/log4c/log4c
上游文档https://log4c.sourceforge.net/
许可证LGPL-2.1-only
源码归档https://downloads.sourceforge.net/project/log4c/log4c/1.2.4/log4c-1.2.4.tar.gz
最后更新2026-06-19T12:31:48-07:00
Pulseupdated
Bottle可用 (于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura, x86_64_linux)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

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

源数据库匹配

其他软件包管理器记录

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

Debian apt95%

liblog4c-dev 1.2.4-5

C library for flexible logging (development)

https://log4c.sourceforge.net

sudo apt install liblog4c-dev
  • Section: libdevel
  • Architecture: amd64
  • Source Package: log4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Log4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblog4c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblog4c-doc 1.2.4-5

C library for flexible logging (documentation)

https://log4c.sourceforge.net

sudo apt install liblog4c-doc
  • Section: doc
  • Architecture: all
  • Source Package: log4c
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Log4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblog4c-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

liblog4c3t64 1.2.4-5

C library for flexible logging (runtime)

https://log4c.sourceforge.net

sudo apt install liblog4c3t64
  • Section: libs
  • Architecture: amd64
  • Source Package: log4c
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Log4c
Debian stable package indexes · deb.debian.org · Debian stable package indexes: liblog4c3t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

liblog4c-dev 1.2.4-3.1build1

C library for flexible logging (development)

https://log4c.sourceforge.net

sudo apt install liblog4c-dev
  • Section: universe/libdevel
  • Architecture: amd64
  • Source Package: log4c
  • 1 依赖
  • normalized package name match
  • 匹配方式:Log4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblog4c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

liblog4c-doc 1.2.4-3.1build1

C library for flexible logging (documentation)

https://log4c.sourceforge.net

sudo apt install liblog4c-doc
  • Section: universe/doc
  • Architecture: all
  • Source Package: log4c
  • 2 可选依赖
  • normalized package name match
  • 匹配方式:Log4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblog4c-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

liblog4c3t64 1.2.4-3.1build1

C library for flexible logging (runtime)

https://log4c.sourceforge.net

sudo apt install liblog4c3t64
  • Section: universe/libs
  • Architecture: amd64
  • Source Package: log4c
  • 2 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Log4c
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: liblog4c3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
dnf95%

log4c 1.2.4-35.fc44

Library for logging application messages

http://log4c.sourceforge.net/

sudo dnf install log4c
  • License: LicenseRef-Callaway-LGPLv2+
  • Category: Unspecified
  • Architecture: i686
  • Source Package: log4c
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Log4c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: log4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

log4c-devel 1.2.4-35.fc44

Header files, libraries and development documentation for log4c

http://log4c.sourceforge.net/

sudo dnf install log4c-devel
  • License: LicenseRef-Callaway-LGPLv2+
  • Category: Unspecified
  • Architecture: i686
  • Source Package: log4c
  • 4 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Log4c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: log4c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
dnf95%

log4c-doc 1.2.4-35.fc44

Documentation for log4c

http://log4c.sourceforge.net/

sudo dnf install log4c-doc
  • License: LicenseRef-Callaway-LGPLv2+
  • Category: Unspecified
  • Architecture: noarch
  • Source Package: log4c
  • 1 提供
  • normalized package name match
  • 匹配方式:Log4c
Fedora Rawhide package metadata · dl.fedoraproject.org · Fedora Rawhide package metadata: log4c-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst
zypper95%

liblog4c-devel 1.2.4-5.36

Development files for log4c

http://log4c.sourceforge.net/

sudo zypper install liblog4c-devel
  • License: LGPL-2.1+
  • Category: Development/Libraries/C and C++
  • Architecture: x86_64
  • Source Package: log4c
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Log4c
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblog4c-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

liblog4c-doc 1.2.4-5.36

Documentation for log4c

http://log4c.sourceforge.net/

sudo zypper install liblog4c-doc
  • License: LGPL-2.1+
  • Category: Development/Languages/C and C++
  • Architecture: x86_64
  • Source Package: log4c
  • 1 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Log4c
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblog4c-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
zypper95%

liblog4c3 1.2.4-5.36

A library of C for flexible logging to files, syslog and other destinations

http://log4c.sourceforge.net/

sudo zypper install liblog4c3
  • License: LGPL-2.1+
  • Category: System/Libraries
  • Architecture: x86_64
  • Source Package: log4c
  • 3 依赖
  • 2 提供
  • normalized package name match
  • 匹配方式:Log4c
openSUSE Tumbleweed package metadata · download.opensuse.org · openSUSE Tumbleweed package metadata: liblog4c3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst
MacPorts95%

log4c

sudo port install log4c
  • normalized package name match
  • 匹配方式:Log4c
MacPorts ports tree · api.github.com · MacPorts ports tree: devel/log4c/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 configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment