Add this to your Cargo.toml
toml
[dependencies]
ezlog = "0.2"
```rust use ezlog::EZLogConfigBuilder; use ezlog::Level; use log::{error, info, warn}; use log::{LevelFilter, Log};
ezlog::InitBuilder::new().init();
let config = EZLogConfigBuilder::new() .level(Level::Trace) .dirpath( dirs::downloaddir() .unwrap() .intoosstring() .intostring() .expect("dir path error"), ) .build(); ezlog::createlog(config);
info!("hello ezlog");
```
see more examples in examples dir.