Crate slog_scope_stdlog [−] [src]
Standard Rust log crate adapter to slog-rs based on slog-scope.
Note: this is a fork of a
slog-stdlog that unlike original does
share logging scopes with
slog-scope crate. It is currently advised
This crate provides two way compatibility with legacy
log crate logging.
log crate logging statements (eg.
be redirected just like they originated from the logger returned by
See documentation of
slog-scope for examples of logging scope usage.
StdLog is a
slog::Drain implementation that will log logging
Records just like
they were created using legacy
Be careful when using both methods at the same time, as a loop can be easily created:
log -> ...
Minimal initialization with default drain