Releases: zaptech-dev/sheen
Releases · zaptech-dev/sheen
v.0.3.0
What's New
Log Crate Adapter
Sheen can now act as a backend for the log crate. Enable the log feature flag and
any crate using log::info!(), log::warn!(), etc. will be routed through sheen's formatters.
Logger::new().level(Level::Debug).init().unwrap();
log::info!("server started");Tracing Crate Adapter
Sheen can now act as a subscriber for the tracing crate via SheenLayer.
Enable the tracing feature flag to capture events from the tracing ecosystem.
SheenLayer::new(Logger::new().level(Level::Trace)).init();
tracing::info!("server started");Feature Flags
Both adapters are opt-in:
sheen = { version = "0.3", features = ["log"] }
# or
sheen = { version = "0.3", features = ["tracing"] }