slog-stdlog 1.0.0-alpha8

Standard Rust log crate adapter to slog-rs
Documentation

Standard Rust log crate adapter to slog-rs

This crate allows using slog features with code using legacy log statements.

log crate expects a global logger to be registered (popular one is env_logger) as a handler for all info!(...) and similar.

slog-stdlog will register itself as log global handler and forward all legacy logging statements to slog's Logger. That means existing logging debug! (even in dependencies crates) work and utilize slog composable drains.

See init() documentation for minimal working example.