Function simple_logging::log_to [] [src]

pub fn log_to<T: Write + Send + Sync + 'static>(
    sink: T,
    max_log_level: LogLevelFilter
) -> Result<(), SetLoggerError>

Configure the log facade to log to a custom sink through a SimpleLogger.

Examples

use log::LogLevelFilter;
use std::io;

simple_logging::log_to(io::sink(), LogLevelFilter::Info);