2 releases
0.1.1 | Nov 10, 2023 |
---|---|
0.1.0 | Oct 28, 2023 |
#717 in Debugging
40 downloads per month
Used in korea-investment-api
5KB
67 lines
xan-log
Usage
- the logger will initialized with LOG_LEVEL env variable
list: off, trace, debug, info, warn, error both upper, lower case are parsable
- add log lib and extern it in your main.rs or lib.rs
#[macro_use]
extern crate log;
- init logger and use the macros
use xan_log::init_logger;
#[macro_use]
extern crate log;
fn main() {
init_logger();
error!("idk, some error: {}", "some error");
}
Dependencies
~1.4–2.3MB
~40K SLoC