# estk/log4rs

A highly configurable logging framework for Rust

Repository: https://github.com/estk/log4rs
Canonical: https://ross.abutalabs.com/products/log4rs
Language: Rust
License: Apache-2.0
License Family: permissive
Topics: logging, rust, log, json, xml
Last push: 2025-11-16T06:30:17+00:00

## Health v2 (maintenance only)
Score: 48/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 52, release rhythm 14, longevity 100
- inputs: {"age_days": 4236, "days_push": 290, "days_rel": 362, "gap_med": null, "n_releases_24m": 1}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1136, forks 167 (observed 2026-08-28T04:03:43.649161+00:00)

## What it is
log4rs is a highly configurable logging framework for Rust, modeled after Java's Logback and log4j. It supports multiple appenders (console, file, rolling files), YAML/JSON/XML configuration, and per-logger levels via the `log` facade.

## Use cases
- configure logging in a rust application with yaml files
- write logs to console and files with different levels
- rotate and compress log files automatically
- set per-module log levels in rust
- reload logging configuration at runtime

## When to choose
- you need flexible, file-driven logging configuration in Rust
- you want multiple log outputs with per-logger levels
- you need log rotation and compression

## When to avoid
- you only need trivial logging and prefer a minimal setup
- you need structured distributed tracing rather than logging

## Facets
- artifact type: library
- maturity: stable
- function: logging
- domain: developer-tools, backend
- platform: rust, cross-platform, wasm
- tags: log-facade, logback, yaml-config, log-rotation, multi-output

## Member repositories
- estk/log4rs (main) score 48

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:43.649161+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-30T06:36:30.391270+00:00, confidence not recorded.
  - readme: https://github.com/estk/log4rs (fetched 2026-08-28T04:03:43.649161+00:00, sha 98247df06829)
  - registry_crates: https://crates.io/api/v1/crates/log4rs (fetched 2026-08-29T12:41:25.543968+00:00, sha 0f1051513d8e)
- Data as of 2026-08-30T08:39:29.467469+00:00.
