#logging #formatter #output #setup-logging #sdre

sdre-rust-logging

A simple logging library for Rust, with a custom formatter

25 releases

0.3.20 Jun 29, 2025
0.3.18 May 17, 2025
0.3.15 Mar 31, 2025
0.3.7 Dec 1, 2024
0.1.0 Nov 18, 2023

#292 in Debugging

Download history 256/week @ 2025-03-19 206/week @ 2025-03-26 233/week @ 2025-04-02 228/week @ 2025-04-09 72/week @ 2025-04-16 75/week @ 2025-04-23 40/week @ 2025-04-30 30/week @ 2025-05-07 246/week @ 2025-05-14 24/week @ 2025-05-21 51/week @ 2025-05-28 21/week @ 2025-06-11 262/week @ 2025-06-18 164/week @ 2025-06-25 47/week @ 2025-07-02

494 downloads per month

MIT license

11KB
128 lines

sdre-rust-logging

This crate provides logging traits/structs that automatically format log output.

Usage Example

In this example, we will see a drop in replacement for the standard log crate's info! macro

use sdre_rust_logging::SetupLogging;

fn main() {
    let logger: u8 = 0;
    logger.enable_logging();
    info!("Hello World!"); // will print
    debug!("Hello World!"); // will not print
}

Dependencies

~1.5MB
~23K SLoC