macOS
brew install log4clocal Homebrew formula metadata
sudo port install log4cMacPorts ports tree · devel/log4c/Portfile · 来源: api.github.com
安装
brew install log4clocal Homebrew formula metadata
sudo port install log4cMacPorts ports tree · devel/log4c/Portfile · 来源: api.github.com
sudo dnf install log4cFedora Rawhide package metadata · log4c · 来源: dl.fedoraproject.org
sudo apt install liblog4c-devDebian stable package indexes · liblog4c-dev · 来源: deb.debian.org
sudo zypper install liblog4c-developenSUSE Tumbleweed package metadata · liblog4c-devel · 来源: download.opensuse.org
概览
Logging Framework for C
历史
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.
安全态势
narrow executable package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
local files
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.
Config paths the tool may read or write during local use.
${LOG4C_RCPATH}/log4crc${HOME}/.log4crc./log4crc可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
log4c-config | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
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 |
| Pulse | updated |
| 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 Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | log4c |
| Version Scheme | 0 |
| Revision | 0 |
| Head Version | HEAD |
| Bottle Stable Root URL | https://ghcr.io/v2/homebrew/core |
| Deprecated | no |
| Disabled | no |
| Keg Only | no |
| URL Keys |
|
源数据库匹配
匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。
liblog4c-dev 1.2.4-5
C library for flexible logging (development)
sudo apt install liblog4c-devliblog4c-doc 1.2.4-5
C library for flexible logging (documentation)
sudo apt install liblog4c-docliblog4c3t64 1.2.4-5
C library for flexible logging (runtime)
sudo apt install liblog4c3t64liblog4c-dev 1.2.4-3.1build1
C library for flexible logging (development)
sudo apt install liblog4c-devliblog4c-doc 1.2.4-3.1build1
C library for flexible logging (documentation)
sudo apt install liblog4c-docliblog4c3t64 1.2.4-3.1build1
C library for flexible logging (runtime)
sudo apt install liblog4c3t64log4c 1.2.4-35.fc44
Library for logging application messages
sudo dnf install log4clog4c-devel 1.2.4-35.fc44
Header files, libraries and development documentation for log4c
sudo dnf install log4c-devellog4c-doc 1.2.4-35.fc44
Documentation for log4c
sudo dnf install log4c-docliblog4c-devel 1.2.4-5.36
Development files for log4c
sudo zypper install liblog4c-develliblog4c-doc 1.2.4-5.36
Documentation for log4c
sudo zypper install liblog4c-docliblog4c3 1.2.4-5.36
A library of C for flexible logging to files, syslog and other destinations
sudo zypper install liblog4c3log4c
sudo port install log4c来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.