sdre-rust-logging

Crates.iosdre-rust-logging
lib.rssdre-rust-logging
version0.3.3
sourcesrc
created_at2023-11-18 21:29:29.835846
updated_at2024-06-30 21:52:33.574905
descriptionA simple logging library for Rust, with a custom formatter.
homepagehttps://github.com/sdr-enthusiasts/sdre-rust-logging
repositoryhttps://github.com/sdr-enthusiasts/sdre-rust-logging
max_upload_size
id1040726
size21,171
Fred Clausen (fredclausen)

documentation

https://github.com/sdr-enthusiasts/sdre-rust-logging

README

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
}
Commit count: 126

cargo fmt