Show HN: Rust-loguru – A flexible Rust logging library like Python's Loguru
5 jraghavan 4 4/28/2025, 3:33:09 AM crates.io ↗
I've just released rust-loguru, a logging library for Rust that aims to combine intuitive API design (inspired by Go/Python's Loguru) with Rust's performance characteristics.
Some highlights:
- Consistently outperforms the standard log crate by 50-80% in benchmarks. - Multiple log levels and an extensible handler system -File rotation with better performance than log4rs and other alternatives - Error handling utilities and context helpers
I built this because I wanted a logger that was both ergonomic to use and high-performance. The benchmarks comparing it to slog, log, and tracing are available in the repo.
I'd appreciate any feedback, especially on the API design and performance characteristics. Are there any features you'd like to see added to the roadmap? [GitHub Link: https://github.com/j-raghavan/rust-loguru] [Crates.io: https://crates.io/crates/rust-loguru]
So, do you lose any feature, functionality or performance when using loguru as a log crate backend?