# Install log4c with Homebrew, apt, dnf, MacPorts, zypper

Logging Framework for C. Version 1.2.4 via Homebrew; verified 2026-06-19.

## Install

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

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install log4c
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install log4c
```

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

### Linux

- Debian apt (92%):

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

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

- dnf (92%):

```sh
sudo dnf install log4c
```

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

- zypper (92%):

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

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

## Package facts

- **Package key:** brew:log4c
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/log4c>
- **Version:** 1.2.4
- **Source summary:** Logging Framework for C
- **Homepage:** <https://log4c.sourceforge.net/>
- **Repository:** <https://sourceforge.net/p/log4c/log4c>
- **Upstream docs:** <https://log4c.sourceforge.net/>
- **License:** LGPL-2.1-only
- **Source archive:** <https://downloads.sourceforge.net/project/log4c/log4c/1.2.4/log4c-1.2.4.tar.gz>
- **Last updated:** 2026-06-19T12:31:48-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- log4c-config (cli)
- log4c-config (alias)

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 1.2.4
- Package-manager updated: 2026-06-19
- Local data: ok
- Upstream repository: https://log4c.sourceforge.net/
- info: Release/tag comparison is only available for GitHub repositories.
## Project history and usage

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.

### Project history

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.

### Adoption history

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.

### How it is used

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.

### Why package nerds care

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.

### Timeline

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

### Sources

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


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- 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
## Source Database Details

- **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:** head, stable

## Other Package-Manager Records

- 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-35.fc44: normalized package name match | Fedora Rawhide package metadata: log4c from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Library for logging application messages | http://log4c.sourceforge.net/
- dnf - log4c-devel - 1.2.4-35.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Header files, libraries and development documentation for log4c | http://log4c.sourceforge.net/
- dnf - log4c-doc - 1.2.4-35.fc44: 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/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Documentation for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c-devel - 1.2.4-5.36: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c-devel from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Development files for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c-doc - 1.2.4-5.36: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c-doc from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-primary.xml.zst | Documentation for log4c | http://log4c.sourceforge.net/
- zypper - liblog4c3 - 1.2.4-5.36: normalized package name match | openSUSE Tumbleweed package metadata: liblog4c3 from https://download.opensuse.org/tumbleweed/repo/oss/repodata/be8d3611d25469107f32075a1697e69ec57a2b850b42348a658cc671ad5ec2b50760d02c3e59524d50da9a11d5be799bdaffba2e166e8ca8858512e3c0bd665d-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


## Related links

- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [Networking and protocol packages](https://www.automicvault.com/pkg/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [log4cpp](https://www.automicvault.com/pkg/brew/log4cpp/) - Shares av.db curated category or tags: cli, developer-tools, library, log4j-inspired, logging.
- [zlog](https://www.automicvault.com/pkg/brew/zlog/) - Shares av.db curated category or tags: c, cli, developer-tools, library, logging.
- [nerdlog](https://www.automicvault.com/pkg/brew/nerdlog/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [purr](https://www.automicvault.com/pkg/brew/purr/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [check](https://www.automicvault.com/pkg/brew/check/) - Shares av.db curated category or tags: c, cli, developer-tools, library.
- [clog](https://www.automicvault.com/pkg/brew/clog/) - Shares av.db curated category or tags: cli, developer-tools, logging.
- [cppunit](https://www.automicvault.com/pkg/brew/cppunit/) - Shares av.db curated category or tags: c, cli, developer-tools, library.
- [dmalloc](https://www.automicvault.com/pkg/brew/dmalloc/) - Shares av.db curated category or tags: c, cli, developer-tools, library.
- [wv2](https://www.automicvault.com/pkg/brew/wv2/) - Local package facts share a topical domain. Shared terms: cli, config, developer, developer-tools, library.

## Combined YAML source

View the package source record on GitHub. [combined/log4c.yml](https://github.com/automic-vault/db/blob/main/combined/log4c.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
