Crates.io | sdre-rust-logging |
lib.rs | sdre-rust-logging |
version | 0.3.3 |
source | src |
created_at | 2023-11-18 21:29:29.835846 |
updated_at | 2024-06-30 21:52:33.574905 |
description | A simple logging library for Rust, with a custom formatter. |
homepage | https://github.com/sdr-enthusiasts/sdre-rust-logging |
repository | https://github.com/sdr-enthusiasts/sdre-rust-logging |
max_upload_size | |
id | 1040726 |
size | 21,171 |
This crate provides logging traits/structs that automatically format log output.
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
}