rust-lang/log
Logging implementation for Rust observed · 2026-08-28
Health v2 · maintenance only
95/100
- Activity 99
- Release rhythm 87
- Longevity 100
How is this computed?
round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10) — computed 2026-09-03. Adoption (stars, forks) is never an input.
- gap_med: 31
- age_days: 4281
- days_rel: 11
- days_push: 11
- n_releases_24m: 12
Adoption not part of the score
2544 stars · 287 forks observed · 2026-08-28
What it is AI-extracted, prompt v1, taxonomy v1, 2026-08-30, confidence not recorded
The `log` crate is a lightweight logging facade for Rust that provides a single logging API abstracting over actual logging implementations. Libraries emit log messages via macros like `error!`, `warn!`, `info!`, `debug!`, and `trace!`, while executables choose a compatible logger implementation to produce output.
Use cases
- add logging to a Rust library without forcing a logger implementation
- emit structured log messages with levels and targets in Rust code
- swap logging backends like env_logger or log4rs without changing library code
- filter log output by level in Rust applications
- add key-value structured logging to Rust services
When to choose
- you are writing a Rust library that needs logging without a hard dependency on a specific logger
- you want the de facto standard logging API for the Rust ecosystem
- you need near-zero overhead when no logger is installed
When to avoid
- you need a ready-made logger with output formatting - pair this crate with an implementation like env_logger or log4rs
- you are not writing Rust code
Facets
library · maturity stable
logging developer-tools backend cross-platform rust logging-facade rust-crate structured-logging
10 sources
- readme: https://github.com/rust-lang/log · fetched 2026-08-28 · 66a78f5f6dfc
- homepage: https://docs.rs/log · fetched 2026-08-29 · f855151dd811
- site_page: https://docs.rs/about/badges · fetched 2026-08-29 · 6588cac258af
- site_page: https://docs.rs/about/builds · fetched 2026-08-29 · 811231ca4680
- site_page: https://docs.rs/ · fetched 2026-08-29 · 9097c140fbda
- site_page: https://docs.rs/crate/log/latest · fetched 2026-08-29 · e889ccab13c0
- site_page: https://docs.rs/crate/log/latest/features · fetched 2026-08-29 · 724c93a23f0f
- site_page: https://docs.rs/about · fetched 2026-08-29 · 29ab7986fbf5
- site_page: https://docs.rs/about/metadata · fetched 2026-08-29 · 0dcdccb2b2b2
- site_page: https://docs.rs/about/redirections · fetched 2026-08-29 · 1b1efd93105f
Member repositories
| Repository | Role | Health v2 |
|---|---|---|
| rust-lang/log | main | 95 |
For agents
Data as of 2026-08-30T08:39:29.467469+00:00 · Report a problem