simple_logging

Function log_to_file

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