macOS
brew install zloglocal Homebrew formula metadata
sudo port install zlogMacPorts ports tree · devel/zlog/Portfile · 来源: api.github.com
安装
brew install zloglocal Homebrew formula metadata
sudo port install zlogMacPorts ports tree · devel/zlog/Portfile · 来源: api.github.com
nix profile install nixpkgs#zlognixpkgs package indexes · pkgs/by-name/zl/zlog/package.nix · 来源: api.github.com
sudo apt install libzlog-devDebian stable package indexes · libzlog-dev · 来源: deb.debian.org
概览
High-performance C logging library
历史
zlog is a pure-C logging library by Hardy Simpson, written to provide application-style logging features for C programs without external dependencies beyond POSIX and C runtime facilities.
The GitHub repository was created in 2011. The README and user's guide explain the author's motivation directly: printf is hard to redirect or reformat, syslog is oriented toward system logging, and C lacked a convenient logging library comparable to logback or log4cxx for application developers.
The library's model centers on categories, formats, and rules. That makes it closer to configurable application logging frameworks than to a tiny header-only debug macro.
Public source material is thin, but zlog persisted as a packaged C library because it solved a narrow systems-programming need: configurable, thread-aware logging with file rotation, multiple destinations, and a small dependency footprint.
A C program initializes zlog with a configuration file, obtains a category, writes messages through zlog macros or functions, and finalizes the library during shutdown. Configuration rules decide level, destination, and format, so logging behavior can change without recompiling the application.
The bundled zlog-chk-conf utility is useful for checking configuration files before an application relies on them.
zlog is package-nerd glue: not flashy, but exactly the sort of small C library that shows up when older or portable software needs structured logging without adopting a large framework. Its documentation is unusually explicit about why it exists and what it replaces.
安全态势
library-like package without higher-risk signals.
绿色 风险 · 低 置信度 · appliance
在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。
可执行文件
| 命令 | 类型 | 暴露范围 | 备注 |
|---|---|---|---|
zlog-chk-conf | cli | 全局可执行文件 |
新鲜度
这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。
https://github.com/HardySimpson/zlog
安装元数据
| 软件包键 | brew:zlog |
|---|---|
| 版本 | 1.2.18 |
| 软件包管理器 | Homebrew |
| 软件包管理器页面 | https://formulae.brew.sh/formula/zlog |
| 主页 | https://github.com/HardySimpson/zlog |
| 仓库 | https://github.com/HardySimpson/zlog |
| 上游文档 | https://github.com/HardySimpson/zlog#readme |
| 许可证 | Apache-2.0 |
| 源码归档 | https://github.com/HardySimpson/zlog/archive/refs/tags/1.2.18.tar.gz |
| Bottle | 可用 (于 arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, monterey, sonoma, ventura, x86_64_linux) |
| Homebrew post-install | 未定义 |
| 服务 | 未声明 |
注册表事实
| Source Database | Homebrew formula API |
|---|---|
| Tap | homebrew/core |
| Full Name | zlog |
| 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 软件包链接分开显示。
libzlog-dev 1.2.18-1+b1
mutli features pure C logging library -- development files
https://github.com/HardySimpson/zlog
sudo apt install libzlog-devlibzlog1 1.2.18-1+b1
mutli features pure C logging library -- runtime library
https://github.com/HardySimpson/zlog
sudo apt install libzlog1zlog
nix profile install nixpkgs#zlogzlog
sudo port install zlog来源线索
此页面由 av-web 从 scripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。
View the package source record on GitHub.