[][src]Function simple_logging::log_to_file

pub fn log_to_file<T: AsRef<Path>>(
    path: T,
    max_log_level: LevelFilter
) -> Result<()>

Configure the log facade to log to a file.

Examples

use log::LevelFilter;

simple_logging::log_to_file("test.log", LevelFilter::Info);