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

Configure the log facade to log to a file.

Examples

use log::LevelFilter;

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