//! `cargo run --example file` //! //! With OutPut //! ```bash //! 2020-12-12 17:09:05.047820000 [DEBUG] :test file debug //! 2020-12-12 17:09:05.048028000 [INFO] :test file info //! ``` #[macro_use] extern crate simple_log; fn main() -> Result<(), String> { let path = "./log/file.log"; simple_log::file(path, log::Level::Debug, 100, 10)?; debug!("test file debug"); info!("test file info"); Ok(()) }