Function simple_logging::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);