A simple-log with local file or stdout write by Rust.
toml
[dependencies]
log = "0.4"
simple-log = "1.0.0"
```rust
extern crate log;
fn main() -> Result<(), String> { simple_log::quick()?;
debug!("test builder debug");
info!("test builder info");
Ok(())
} ```
toml
[dependencies]
log = "0.4"
simple-log = "1.0.0"
```rust
extern crate log;
use simple_log::LogConfigBuilder;
fn main() -> Result<(), String> { let config = LogConfigBuilder::builder() .path("./log/builderlog.log") .size(1 * 100) .rollcount(10) .level("debug") .outputfile() .outputconsole() .build();
simple_log::new(config)?;
debug!("test builder debug");
info!("test builder info");
Ok(())
} ```
2020-12-07 15:06:03:260570000 [INFO] <json_log:16>:info json simple_log
2020-12-07 15:06:03:262106000 [WARN] <json_log:17>:warn json simple_log
2020-12-07 15:06:03:262174000 [ERROR] <json_log:18>:error json simple_log