# HardySimpson/zlog

A reliable, high-performance, thread safe, flexsible, clear-model, pure C logging library.

Repository: https://github.com/HardySimpson/zlog
Canonical: https://ross.abutalabs.com/products/zlog
Language: C
License: Apache-2.0
License Family: permissive
Last push: 2026-08-11T10:22:20+00:00

## Health v2 (maintenance only)
Score: 66/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 97, release rhythm 8, longevity 100
- inputs: {"age_days": 5363, "days_push": 22, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2543, forks 772 (observed 2026-08-28T04:06:59.476543+00:00)

## What it is
zlog is a pure C logging library inspired by log4j/logback, offering categories, formats, and rules configured via a file. It is reliable, high-performance, thread safe, and supports flexible output to files, stdout, and size-limited rotating logs.

## Use cases
- add structured logging to a C application
- replace printf debugging with configurable log levels
- rotate log files with size limits
- route different log categories to different outputs
- high-performance multithreaded logging in C

## When to choose
- you need a log4j-style logging library in pure C
- you need thread-safe, high-performance logging with file rotation
- you want runtime-configurable log formats and rules via a config file

## When to avoid
- you are writing C++ and prefer a native C++ logging library
- you need structured JSON logging out of the box
- your project is not in C or lacks a compatible build environment

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: cross-platform, c
- tags: thread-safe, log4j-style, configuration-file, high-performance, linux

## Member repositories
- HardySimpson/zlog (main) score 66

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:06:59.476543+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T02:25:05.537009+00:00, confidence not recorded.
  - readme: https://github.com/HardySimpson/zlog (fetched 2026-08-28T04:06:59.476543+00:00, sha ff23bb6a5854)
- Data as of 2026-08-30T08:39:29.467469+00:00.
