Skip to content

Releases: zaptech-dev/sheen

v.0.3.0

27 Jan 02:44
12586e5

Choose a tag to compare

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"] }