Releases: baoyachi/simple-log
Releases Β· baoyachi/simple-log
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");
}
support custom time_format
update readme
1.0.6 upgrade version 1.0.6