#logging #formatter #replace #standard #output #format #sdre

sdre-rust-logging

A simple logging library for Rust, with a custom formatter

18 releases

new 0.3.13 Mar 2, 2025
0.3.10 Jan 27, 2025
0.3.7 Dec 1, 2024
0.3.6 Nov 10, 2024
0.1.0 Nov 18, 2023

#290 in Debugging

Download history 41/week @ 2024-11-13 23/week @ 2024-11-20 173/week @ 2024-11-27 158/week @ 2024-12-04 59/week @ 2024-12-11 54/week @ 2024-12-18 13/week @ 2024-12-25 159/week @ 2025-01-01 310/week @ 2025-01-08 170/week @ 2025-01-15 147/week @ 2025-01-22 77/week @ 2025-01-29 197/week @ 2025-02-05 172/week @ 2025-02-12 135/week @ 2025-02-19 347/week @ 2025-02-26

857 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
~24K SLoC