9 releases
0.3.4 | Jul 28, 2024 |
---|---|
0.3.3 | Jun 30, 2024 |
0.3.2 | May 13, 2024 |
0.3.1 | Mar 18, 2024 |
0.1.0 | Nov 18, 2023 |
#266 in Debugging
596 downloads per month
9KB
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