# zlog を Homebrew, MacPorts, Nix, apt でインストール

zlog のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:zlog
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install zlog
```

  証拠: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install zlog
```

  証拠: MacPorts ports tree: devel/zlog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#zlog
```

  証拠: nixpkgs package indexes: pkgs/by-name/zl/zlog/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

- Debian apt (92%):

```sh
sudo apt install libzlog-dev
```

  証拠: Debian stable package indexes: libzlog-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

## パッケージ情報

- **パッケージキー:** brew:zlog
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.2.18
- **ソース概要:** High-performance C logging library
- **ホームページ:** <https://github.com/HardySimpson/zlog>
- **リポジトリ:** <https://github.com/HardySimpson/zlog>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- zlog-chk-conf (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.2.18
## プロジェクトの歴史と使われ方

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.

### タイムライン

- 2011-12-27: The HardySimpson/zlog GitHub repository is created.
- 2010s: Documentation presents zlog as a pure-C alternative to printf, syslog, and log4c-style approaches for application logging.
- 2020s: zlog remains packaged as a small C logging library for Unix-like development environments.

### Related projects

- log4c, log4cxx, logback, syslog, and smaller C logging libraries such as log.c are adjacent points in the logging-library design space.

### ソース

- <https://api.github.com/repos/HardySimpson/zlog>
- <https://github.com/HardySimpson/zlog>
- <https://hardysimpson.github.io/zlog/UsersGuide-EN.html>


## セキュリティノート

library-like package without higher-risk signals.

- **Geiger リスク:** グリーン / 低
- library-like package without higher-risk signals

## 他のパッケージマネージャ記録

- Debian apt - libzlog-dev - 1.2.18-1+b1: normalized package name match | Debian stable package indexes: libzlog-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | mutli features pure C logging library -- development files | https://github.com/HardySimpson/zlog
- Debian apt - libzlog1 - 1.2.18-1+b1: normalized package name match | Debian stable package indexes: libzlog1 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | mutli features pure C logging library -- runtime library | https://github.com/HardySimpson/zlog
- Nix - zlog: normalized package name match | nixpkgs package indexes: pkgs/by-name/zl/zlog/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - zlog: normalized package name match | MacPorts ports tree: devel/zlog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/zlog.yml](https://github.com/mxcl/pkgdb/blob/main/combined/zlog.yml)


## ソース

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
