# log4c mit Homebrew, dnf, MacPorts, apt, zypper installieren

Prüfe Installationswege, Executables, Metadaten und Sicherheitshinweise für log4c in AI-Agent-Workflows.

## Installation

```sh
sudo av install brew:log4c
```

Weitere Installationsbefehle:

### macOS

- Homebrew (100%):

```sh
brew install log4c
```

  Evidenz: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install log4c
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install log4c
```

  Evidenz: Fedora Rawhide package metadata: log4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst

- Debian apt (92%):

```sh
sudo apt install liblog4c-dev
```

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

- zypper (92%):

```sh
sudo zypper install liblog4c-devel
```

  Evidenz: openSUSE Tumbleweed package metadata: liblog4c-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst

## Paketfakten

- **Paketschlüssel:** brew:log4c
- **Paketmanager:** Homebrew
- **Version:** 1.2.4
- **Quellzusammenfassung:** Logging Framework for C
- **Homepage:** <https://log4c.sourceforge.net/>
- **Zuletzt aktualisiert:** 2026-06-19T12:31:48-07:00
- **Generiert:** 2026-08-03T19:37:03+00:00

## Executables

- log4c-config (Alias)

## Installationsverhalten

- Bottle: nicht verfügbar

## Version und Aktualität

- Seite generiert: 2026-08-03
- Manager-Version: 1.2.4
## Projektgeschichte und Nutzung

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.

### Projektgeschichte

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.

### Adoptionsgeschichte

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.

### Wie es verwendet wird

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.

### Warum Paket-Nerds sich dafür interessieren

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.

### Zeitleiste

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

### Quellen

- <https://log4c.sourceforge.net/>
- <https://sourceforge.net/projects/log4c/files/log4c/1.2.4/>
- source_facts.package-manager


## Sicherheitshinweise

narrow executable package without higher-risk signals.

- **Geiger-Risiko:** grün / niedrig
- narrow executable package without higher-risk signals


## 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

- Unix: ${LOG4C_RCPATH}/log4crc, ${HOME}/.log4crc, ./log4crc
## Andere Paketmanager-Einträge

- Debian apt - liblog4c-dev - 1.2.4-5: normalized package name match | Debian stable package indexes: liblog4c-dev from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for flexible logging (development) | https://log4c.sourceforge.net
- Debian apt - liblog4c-doc - 1.2.4-5: normalized package name match | Debian stable package indexes: liblog4c-doc from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for flexible logging (documentation) | https://log4c.sourceforge.net
- Debian apt - liblog4c3t64 - 1.2.4-5: normalized package name match | Debian stable package indexes: liblog4c3t64 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | C library for flexible logging (runtime) | https://log4c.sourceforge.net
- Ubuntu apt - liblog4c-dev - 1.2.4-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblog4c-dev from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for flexible logging (development) | https://log4c.sourceforge.net
- Ubuntu apt - liblog4c-doc - 1.2.4-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblog4c-doc from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for flexible logging (documentation) | https://log4c.sourceforge.net
- Ubuntu apt - liblog4c3t64 - 1.2.4-3.1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: liblog4c3t64 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | C library for flexible logging (runtime) | https://log4c.sourceforge.net
- dnf - log4c - 1.2.4-36.fc45: normalized package name match | Fedora Rawhide package metadata: log4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Library for logging application messages | http://log4c.sourceforge.net/
- dnf - log4c-devel - 1.2.4-36.fc45: normalized package name match | Fedora Rawhide package metadata: log4c-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Header files, libraries and development documentation for log4c | http://log4c.sourceforge.net/
- dnf - log4c-doc - 1.2.4-36.fc45: normalized package name match | Fedora Rawhide package metadata: log4c-doc from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Documentation for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c-devel - 1.2.4-5.38: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Development files for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c-doc - 1.2.4-5.38: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | Documentation for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c3 - 1.2.4-5.38: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/50b07339cb64c8ed4091bdbabddadc1ff5737b090e478818a195b40d8a3292861a879139b4a3987c31109699fde9fbf4a716367ddf4eef77da75f96e3193d6ed-primary.xml.zst | A library of C for flexible logging to files, syslog and other destinations | http://log4c.sourceforge.net/
- MacPorts - log4c: normalized package name match | MacPorts ports tree: devel/log4c/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/log4c.yml](https://github.com/mxcl/pkgdb/blob/main/combined/log4c.yml)


## Quellen

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