#log #logger #logging

loge

A analysis friendly logger with formatted output

7 releases

✓ Uses Rust 2018 edition

new 0.2.3 Jan 22, 2020
0.2.2 Jan 22, 2020
0.1.2 Jan 16, 2020

#136 in Debugging

35 downloads per month

MIT/Apache

9KB
96 lines

loge

Crates.io Docs MIT/APACHE-2.0 GitHub Workflow Status

It helps to be diligent in recording and willing to review.

A simple logger with formatted output for easy analysis. Free your productivity start with best practices logs.

Note: Use improved log format from 0.2.0, the log info will output as date time [level] target - (line) ... message:

loge output

TODO

  • Format
    • Simple JSON Logger.
    • Colorful, Intuitive.
  • Analysis
    • Basic Parser.
    • Coarse-grained Chart.

Usage

At first, you should add it to your Cargo.toml file.

[dependencies]
log = "0.4.8"
loge = "0.2.1"

After that, set the RUST_LOG variable in your code and initialize the logger.

env::set_var("RUST_LOG", "trace");
loge::init();

Just run your project, you will get logs in the terminal.

Contact

Chojan Shang - @PsiACE - psiace@outlook.com

Project Link: https://github.com/psiace/loge

License

Licensed under either of:

Acknowledge

Dependencies

~2.5MB
~59K SLoC