[][src]Function simple_logging::log_to

pub fn log_to<T: Write + Send + 'static>(sink: T, max_log_level: LevelFilter)

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);