Crates.io | sdre-rust-logging |
lib.rs | sdre-rust-logging |
version | |
source | src |
created_at | 2023-11-18 21:29:29.835846 |
updated_at | 2024-12-01 08:36:38.020881 |
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 |
Cargo.toml error: | TOML parse error at line 19, column 1 | 19 | autolib = false | ^^^^^^^ unknown field `autolib`, expected one of `name`, `version`, `edition`, `authors`, `description`, `readme`, `license`, `repository`, `homepage`, `documentation`, `build`, `resolver`, `links`, `default-run`, `default_dash_run`, `rust-version`, `rust_dash_version`, `rust_version`, `license-file`, `license_dash_file`, `license_file`, `licenseFile`, `license_capital_file`, `forced-target`, `forced_dash_target`, `autobins`, `autotests`, `autoexamples`, `autobenches`, `publish`, `metadata`, `keywords`, `categories`, `exclude`, `include` |
size | 0 |
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
}