simple_loggingFunction log_to
Source pub fn log_to<T: Write + Send + 'static>(sink: T, max_log_level: LevelFilter)
Expand description
Configure the log
facade to log to a
custom sink.
ยงExamples
use log::LevelFilter;
use std::io;
simple_logging::log_to(io::sink(), LevelFilter::Info);