Function simple_logging::log_to_file
[−]
[src]
pub fn log_to_file<T: AsRef<Path>>(
path: T,
max_log_level: LogLevelFilter
) -> Result<()>
Configure the log facade to log to a file
through a SimpleLogger.
Examples
use log::LogLevelFilter; simple_logging::log_to_file("test.log", LogLevelFilter::Info);