muhammad-fiaz/logly.zig: A production-ready, high-performance structured logging library for Zig with a clean, simplified API.
Logly.zig is a production-ready structured logging library for Zig featuring 8 log levels, multiple output sinks (console, file, JSON), file rotation (time and size-based), ANSI color support, async I/O, thread-safe operations, and enterprise features like distributed tracing, metrics, sampling, and redaction. It offers a clean Python-like API with methods such as logger.info() and logger.err(), supports custom log levels and formats, and includes advanced capabilities like compression, thread pools, and automatic maintenance scheduling. Benchmark results show throughput up to 26M ops/sec with the high-throughput preset.