pub fn init() -> Result<(), SetLoggerError>
Expand description
Minimal initialization with default drain
The exact default drain is unspecified and will
change in future versions! Use set_logger
instead
to build customized drain.
#[macro_use]
extern crate log;
extern crate slog_scope_stdlog;
fn main() {
slog_scope_stdlog::init().unwrap();
// Note: this `info!(...)` macro comes from `log` crate
info!("standard logging redirected to slog");
}