Releases: baoyachi/simple-log
Releases · baoyachi/simple-log
v.1.7.0
What's Changed
- Fix bug by @baoyachi in #29
- Update toml requirement from 0.5.7 to 0.8.19 by @dependabot in #32
- Bump actions/checkout from 2 to 4 by @dependabot in #31
- Bump hecrj/setup-rust-action from 1 to 2 by @dependabot in #30
- fix github action by @baoyachi in #33
New Contributors
- @dependabot made their first contribution in #32
Full Changelog: v1.6.0...v.1.7.0
Deny RUSTSEC traitobject enhancement
newline: use {n} replace with \n
change default log name by use project_name
v1.5.0 update
v1.4.0
fix out_kind is empty error
1.3.3 fix out_kind is empty error
support color output with terminal
support quick macro
//! `cargo run --example quick`
//! With OutPut
//! ```bash
//! 2020-12-12 17:14:19.558272000 [DEBUG] <quick:14>:test quick debug
//! 2020-12-12 17:14:19.559048000 [INFO] <quick:15>:test quick info
//! ```
#[macro_use]
extern crate log;
fn main() {
// quick_empty()
// quick_level()
quick_level_path()
}
#[allow(dead_code)]
fn quick_empty() {
simple_log::quick!();
debug!("test quick debug");
info!("test quick info");
}
#[allow(dead_code)]
fn quick_level() {
simple_log::quick!("info");
debug!("test quick debug");
info!("test quick info");
}
fn quick_level_path() {
simple_log::quick!("info", "./log/tmp.log");
debug!("test quick debug");
info!("test quick info");
}
support quick macro
fn main() {
simple_log::quick!("info"); // also use empty args: simple_log::quick!();
// simple_log::quick!(); //use debug log_level
debug!("test quick debug");
info!("test quick info");
}