Function slog_global::redirect_std_log[][src]

pub fn redirect_std_log(level: Option<Level>) -> Result<(), SetLoggerError>

Starts redirecting all logs from the log crate slog_global::borrow_global().

Logs will be always outputted to the active global logger at the time of logging (instead of the global logger when this function is called).

Basically this function should be called only once.